Carry XDV device advances through packed box scopes

This commit is contained in:
gloamxun committed 2026-11-29 03:42:11 +08:00
1 parent 9da75c82f5
commit 9efededf6d
14 files changed
+252 -83

No files matched your search

+1 -4
View File
@@ -244,10 +244,7 @@ impl NativeText {
if self.xdv {
// xdvipdfmx follows the advances in the DVI/XDV stream. The PDF
// viewer separately uses the embedded font's declared widths.
return crate::pdf_device::magnify(
font.metrics().xdv_width(slot),
1000 + font.expansion,
);
return font.xdv_advance(slot);
}
let expansion = self.expansion;
let advance = match &paint.program {