summaryrefslogtreecommitdiff
path: root/src/exec
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2021-05-17 22:59:35 +0200
committerLaurenz <laurmaedje@gmail.com>2021-05-17 23:06:31 +0200
commit8d67c0ca5eb3486dde97fd281bd4a51d535c600c (patch)
tree07030d7252082749f3559ba33a5d6c34ac328e3f /src/exec
parentc975d0d5e989cca6eff8e80ca8174f85eb4a3460 (diff)
Convert font units to lengths earlier
Diffstat (limited to 'src/exec')
-rw-r--r--src/exec/state.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/exec/state.rs b/src/exec/state.rs
index f0b060af..99c162c6 100644
--- a/src/exec/state.rs
+++ b/src/exec/state.rs
@@ -162,7 +162,7 @@ impl FontState {
size: self.resolve_size(),
top_edge: self.top_edge,
bottom_edge: self.bottom_edge,
- color: self.color,
+ fill: self.color,
}
}
@@ -205,8 +205,8 @@ pub struct FontProps {
pub top_edge: VerticalFontMetric,
/// What line to consider the bottom edge of text.
pub bottom_edge: VerticalFontMetric,
- /// The color of the text.
- pub color: Fill,
+ /// The fill color of the text.
+ pub fill: Fill,
}
/// Font family definitions.