Carry XDV device advances through packed box scopes
This commit is contained in:
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
|
||||
|
||||
Reference in new issue
Block a user