Implement native automatic font expansion for paragraphs

This commit is contained in:
gloamxun committed 2026-11-20 23:29:37 +08:00
1 parent 1dd745afcb
commit ebbc9e2c17
24 files changed
+632 -34

No files matched your search

@@ -49,7 +49,7 @@ pub(super) fn text_glyph_from_font(
) -> HorizontalBox {
let f = face.metrics();
let c = char::from(slot);
let (width, height, depth, italic) = (f.width(c), f.height(c), f.depth(c), f.italic(c));
let (width, height, depth, italic) = (face.advance(slot), f.height(c), f.depth(c), f.italic(c));
HorizontalBox {
width,
height,