Implement XeTeX contextual interword spacing and shipout shaping
This commit is contained in:
1 parent
7e5428ec35
commit
4a77540e46
23 files changed
+491
-42
No files matched your search
@@ -152,7 +152,7 @@ impl Executor {
|
||||
if b.width + q > width {
|
||||
let mut shrink = [0i64; 4];
|
||||
for node in &material {
|
||||
if let TextNode::Glue(g)
|
||||
if let TextNode::Glue(g) | TextNode::FontSpace(g, _, _)
|
||||
| TextNode::NamedGlue(g, _)
|
||||
| TextNode::Leaders(LeaderGlue { glue: g, .. }) = node
|
||||
{
|
||||
@@ -180,7 +180,7 @@ impl Executor {
|
||||
displacement = (width - b.width - e + 1).div_euclid(2);
|
||||
if matches!(
|
||||
material.first(),
|
||||
Some(TextNode::Glue(_) | TextNode::NamedGlue(_, _) | TextNode::Leaders(_))
|
||||
Some(TextNode::Glue(_) | TextNode::FontSpace(_, _, _) | TextNode::NamedGlue(_, _) | TextNode::Leaders(_))
|
||||
) {
|
||||
displacement = 0;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user