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

@@ -229,6 +229,9 @@ impl NativeFont {
self.horizontal(width)
}
}
pub(crate) fn xdv_advance(&self, slot: u8) -> i64 {
self.horizontal(self.metrics().xdv_width(slot))
}
pub(crate) fn horizontal(&self, value: i64) -> i64 {
if self.expansion == 0 {
value