Use external expanded font metrics in native paragraph layout
This commit is contained in:
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:+})"));
|
||||
|
||||
Reference in new issue
Block a user