Apply native automatic kerns and protrusion at real line edges
This commit is contained in:
1 parent
f66a5a7e20
commit
1822ab2d32
22 files changed
+260
-36
No files matched your search
@@ -153,7 +153,9 @@ impl BreakNode {
|
||||
| TextNode::NamedGlue(glue, _)
|
||||
| TextNode::Leaders(LeaderGlue { glue, .. }) => Self::Glue(*glue),
|
||||
TextNode::AccentKern(width) => Self::AccentKern(*width),
|
||||
TextNode::MarginKern { width, .. } => Self::Content(i64::from(*width)),
|
||||
TextNode::MarginKern { width, .. } | TextNode::AutoKern(width) => {
|
||||
Self::Content(i64::from(*width))
|
||||
}
|
||||
TextNode::Kern { width, explicit } => Self::Kern {
|
||||
width: *width,
|
||||
explicit: *explicit,
|
||||
|
||||
@@ -96,6 +96,7 @@ fn skippable(node: &TextNode) -> bool {
|
||||
| TextNode::Penalty(_)
|
||||
| TextNode::Indent(0)
|
||||
| TextNode::AccentKern(0)
|
||||
| TextNode::AutoKern(_)
|
||||
| TextNode::MathBoundary { width: 0, .. }
|
||||
| TextNode::Kern { explicit: false, .. }
|
||||
| TextNode::Kern { width: 0, .. } => true,
|
||||
|
||||
Reference in new issue
Block a user