Implement XeTeX OpenType horizontal scaling across layout and preview

This commit is contained in:
gloamxun committed 2026-11-26 10:16:20 +08:00
1 parent cc0246016d
commit 330ecdd03c
7 files changed
+109 -26

No files matched your search

+2 -1
View File
@@ -410,7 +410,8 @@ impl SourceMap {
let ascent = scale(font.ascent);
let descent = scale(font.descent);
Some((PaintKind::OpenTypeGlyph { font: font.id.index(), glyph: *glyph }, Bounds {
x: *x, y: y - ascent, width: *advance, height: ascent + descent,
x: x + advance.min(&0), y: y - ascent,
width: advance.abs(), height: ascent + descent,
}))
}
DisplayItem::Rule {