mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
use au in TextFragment (#32653)
This commit is contained in:
parent
fe58a5f0a3
commit
4357751f28
3 changed files with 4 additions and 5 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue