summaryrefslogtreecommitdiff
path: root/src/exec/state.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2021-04-23 17:46:14 +0200
committerLaurenz <laurmaedje@gmail.com>2021-04-23 17:46:14 +0200
commit6292d25afb3080f606844d7e03fec5c80f0140ff (patch)
tree8d2495edccaa6bdaaa4d012be18df15788c640d0 /src/exec/state.rs
parent72478946c261f04754c11f8a6abf6eb0f43dea31 (diff)
Reengineer font and resource loading 🏞
Diffstat (limited to 'src/exec/state.rs')
-rw-r--r--src/exec/state.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/exec/state.rs b/src/exec/state.rs
index 82f653e9..f4bc6b7b 100644
--- a/src/exec/state.rs
+++ b/src/exec/state.rs
@@ -1,10 +1,8 @@
use std::fmt::{self, Display, Formatter};
use std::rc::Rc;
-use fontdock::{FontStretch, FontStyle, FontVariant, FontWeight};
-
use crate::color::{Color, RgbaColor};
-use crate::font::VerticalFontMetric;
+use crate::font::{FontStretch, FontStyle, FontVariant, FontWeight, VerticalFontMetric};
use crate::geom::*;
use crate::layout::Fill;
use crate::paper::{Paper, PaperClass, PAPER_A4};
@@ -181,7 +179,7 @@ impl Default for FontState {
variant: FontVariant {
style: FontStyle::Normal,
weight: FontWeight::REGULAR,
- stretch: FontStretch::Normal,
+ stretch: FontStretch::NORMAL,
},
size: Length::pt(11.0),
top_edge: VerticalFontMetric::CapHeight,