summaryrefslogtreecommitdiff
path: root/src/layout/par.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2021-07-25 12:10:44 +0200
committerLaurenz <laurmaedje@gmail.com>2021-07-25 12:10:44 +0200
commitc97b3078eb39995528302100d4e8b60c032cadd3 (patch)
tree2242630b093ab96a04e2b2796ea0fda95147942b /src/layout/par.rs
parentec5384c97f24c3e6d8284926fd3e415f47fe2b04 (diff)
Merge font and par state into text state
Diffstat (limited to 'src/layout/par.rs')
-rw-r--r--src/layout/par.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/layout/par.rs b/src/layout/par.rs
index 8736452b..56847b9b 100644
--- a/src/layout/par.rs
+++ b/src/layout/par.rs
@@ -6,7 +6,7 @@ use xi_unicode::LineBreakIterator;
use super::*;
use crate::eco::EcoString;
-use crate::exec::FontState;
+use crate::exec::TextState;
use crate::util::{RangeExt, SliceExt};
type Range = std::ops::Range<usize>;
@@ -30,7 +30,7 @@ pub enum ParChild {
/// Spacing between other nodes.
Spacing(Length),
/// A run of text and how to align it in its line.
- Text(EcoString, Align, Rc<FontState>),
+ Text(EcoString, Align, Rc<TextState>),
/// Any child node and how to align it in its line.
Any(LayoutNode, Align),
}