diff options
| author | Laurenz <laurmaedje@gmail.com> | 2021-05-17 22:59:35 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2021-05-17 23:06:31 +0200 |
| commit | 8d67c0ca5eb3486dde97fd281bd4a51d535c600c (patch) | |
| tree | 07030d7252082749f3559ba33a5d6c34ac328e3f /src/exec | |
| parent | c975d0d5e989cca6eff8e80ca8174f85eb4a3460 (diff) | |
Convert font units to lengths earlier
Diffstat (limited to 'src/exec')
| -rw-r--r-- | src/exec/state.rs | 6 |
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. |
