use au in TextFragment (#32653)

This commit is contained in:
atbrakhi 2024-07-03 09:27:08 +02:00 committed by GitHub
parent fe58a5f0a3
commit 4357751f28
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 4 additions and 5 deletions

View file

@ -961,7 +961,7 @@ fn rgba(color: AbsoluteColor) -> wr::ColorF {
fn glyphs(
glyph_runs: &[Arc<GlyphStore>],
mut baseline_origin: PhysicalPoint<Au>,
justification_adjustment: Length,
justification_adjustment: Au,
) -> Vec<wr::GlyphInstance> {
use fonts_traits::ByteIndex;
use range::Range;
@ -983,7 +983,7 @@ fn glyphs(
}
if glyph.char_is_word_separator() {
baseline_origin.x += justification_adjustment.into();
baseline_origin.x += justification_adjustment;
}
baseline_origin.x += glyph.advance();
}