summaryrefslogtreecommitdiff
path: root/src/style.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2020-09-27 14:26:50 +0200
committerLaurenz <laurmaedje@gmail.com>2020-09-27 14:26:50 +0200
commitdcf1d09d390af4a7a386e253a3a87791d3243bc2 (patch)
tree7e9f194fa2bd75fdc0fcc4df95df46c8fab8e308 /src/style.rs
parent71448c57ffb7f19743c1b33fa7cabd8386cbf68c (diff)
Fix for updated fontdock ✔
Diffstat (limited to 'src/style.rs')
-rw-r--r--src/style.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/style.rs b/src/style.rs
index e964103a..9402f11d 100644
--- a/src/style.rs
+++ b/src/style.rs
@@ -1,6 +1,6 @@
//! Styles for text and pages.
-use fontdock::{fallback, FallbackTree, FontStyle, FontVariant, FontWeight, FontWidth};
+use fontdock::{fallback, FallbackTree, FontStretch, FontStyle, FontVariant, FontWeight};
use crate::geom::{Margins, Size, Value4};
use crate::length::{Length, ScaleLength};
@@ -80,8 +80,8 @@ impl Default for TextStyle {
},
variant: FontVariant {
style: FontStyle::Normal,
- weight: FontWeight(400),
- width: FontWidth::Medium,
+ weight: FontWeight::REGULAR,
+ stretch: FontStretch::Normal,
},
bolder: false,
italic: false,