From 8d67c0ca5eb3486dde97fd281bd4a51d535c600c Mon Sep 17 00:00:00 2001 From: Laurenz Date: Mon, 17 May 2021 22:59:35 +0200 Subject: Convert font units to lengths earlier --- src/exec/state.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/exec') 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. -- cgit v1.2.3