Use external expanded font metrics in native paragraph layout

This commit is contained in:
gloamxun committed 2026-11-21 07:41:45 +08:00
1 parent 4ad66c120d
commit 12d9eb6a54
9 files changed
+326 -116

No files matched your search

@@ -355,7 +355,7 @@ impl Printer<'_> {
}
}
fn character(&mut self, font: FontId, slot: u8, expansion: i32) -> Result<(), String> {
let name = self.state.fonts.font(font)?.identifier_text();
let (name, expansion) = self.state.fonts.diagnostic_font(font, expansion)?;
self.command(&name);
if expansion != 0 {
self.literal(&format!(" ({expansion:+})"));