Add basic support for text-align: justify (#30807)

This also enables parsing of `text-justify` for non-legacy layout,
though only None is supported (disabling justification).
This commit is contained in:
Martin Robinson 2023-12-15 15:00:13 +01:00 committed by GitHub
parent 0be30b30ce
commit ccf0b739df
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
18 changed files with 154 additions and 417 deletions

View file

@ -85,8 +85,12 @@ pub(crate) struct TextFragment {
#[serde(skip_serializing)]
pub font_key: FontInstanceKey,
pub glyphs: Vec<Arc<GlyphStore>>,
/// A flag that represents the _used_ value of the text-decoration property.
pub text_decoration_line: TextDecorationLine,
/// Extra space to add for each justification opportunity.
pub justification_adjustment: Length,
}
#[derive(Serialize)]