Apply native font protrusion during line breaking and packing
This commit is contained in:
1 parent
361e8d070f
commit
4777d66fc8
22 files changed
+441
-32
No files matched your search
@@ -333,6 +333,7 @@ impl NativeBox {
|
||||
TextNode::Indent(w)
|
||||
| TextNode::MathBoundary { width: w, .. }
|
||||
| TextNode::AccentKern(w)
|
||||
| TextNode::MarginKern { width: w, .. }
|
||||
| TextNode::Kern { width: w, .. } => HorizontalItem::Box(HorizontalBox {
|
||||
width: *w as i64,
|
||||
..HorizontalBox::default()
|
||||
@@ -614,6 +615,7 @@ pub(super) fn hpack(
|
||||
TextNode::Indent(w)
|
||||
| TextNode::MathBoundary { width: w, .. }
|
||||
| TextNode::AccentKern(w)
|
||||
| TextNode::MarginKern { width: w, .. }
|
||||
| TextNode::Kern { width: w, .. } => width += *w as i64,
|
||||
TextNode::Glue(g) | TextNode::NamedGlue(g, _) => {
|
||||
width += g.width as i64;
|
||||
|
||||
Reference in new issue
Block a user