summaryrefslogtreecommitdiff
path: root/src/layout/text.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/layout/text.rs')
-rw-r--r--src/layout/text.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/layout/text.rs b/src/layout/text.rs
index 7faefa0d..7f8f97cc 100644
--- a/src/layout/text.rs
+++ b/src/layout/text.rs
@@ -24,6 +24,8 @@ pub struct TextNode {
pub top_edge: VerticalFontMetric,
/// The bottom end of the text bounding box.
pub bottom_edge: VerticalFontMetric,
+ /// The glyph fill.
+ pub color: Fill,
}
impl Layout for TextNode {
@@ -37,6 +39,7 @@ impl Layout for TextNode {
self.font_size,
self.top_edge,
self.bottom_edge,
+ self.color,
&mut ctx.env.fonts,
),
self.aligns,