Revert "Round glyph advance to integer sizes (#384)"

This reverts commit 987ff45ff2.
This commit is contained in:
Jeremy Soller 2025-06-22 13:05:00 -06:00
parent c597f3755b
commit bcfb05a390
No known key found for this signature in database
GPG key ID: 670FDFB5428E05CA

View file

@ -1559,13 +1559,12 @@ impl ShapeLine {
_ => font_size,
};
let mut x_advance = glyph_font_size * glyph.x_advance
let x_advance = glyph_font_size * glyph.x_advance
+ if word.blank {
justification_expansion
} else {
0.0
};
x_advance = math::roundf(x_advance);
if self.rtl {
x -= x_advance;
}