summaryrefslogtreecommitdiff
path: root/src/layout/frame.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2021-08-24 00:39:43 +0200
committerLaurenz <laurmaedje@gmail.com>2021-08-24 00:41:15 +0200
commit148a06c070e6376e6f86b878d08dfd4f0aef8a73 (patch)
tree7330ecae5fa3dbb79c3bb3ce6a099205ec92d2c9 /src/layout/frame.rs
parentd546453880721d7a12ea228e5c1ed6c65b653ca2 (diff)
Switch from state to decorations for underline/strikethrough/overline
Diffstat (limited to 'src/layout/frame.rs')
-rw-r--r--src/layout/frame.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/layout/frame.rs b/src/layout/frame.rs
index 15ef541b..2c8ba3d8 100644
--- a/src/layout/frame.rs
+++ b/src/layout/frame.rs
@@ -131,6 +131,8 @@ pub struct Text {
pub face_id: FaceId,
/// The font size.
pub size: Length,
+ /// The width of the text run.
+ pub width: Length,
/// Glyph color.
pub fill: Paint,
/// The glyphs.