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
@@ -797,6 +797,7 @@ fn empty_alignment_box(width: i64, horizontal: bool, span: Span) -> NativeBox {
|
||||
},
|
||||
diagnostic: Vec::new(),
|
||||
setting: GlueSetting::default(),
|
||||
interword_runs: Vec::new(),
|
||||
badness: 0,
|
||||
diagnostic_eligible: false,
|
||||
excess: 0,
|
||||
@@ -857,7 +858,7 @@ fn set_alignment_cell(
|
||||
match &cell.content {
|
||||
BoxContent::Horizontal(v) => {
|
||||
for n in v {
|
||||
if let TextNode::Glue(g)
|
||||
if let TextNode::Glue(g) | TextNode::FontSpace(g, _, _)
|
||||
| TextNode::NamedGlue(g, _)
|
||||
| TextNode::Leaders(LeaderGlue { glue: g, .. }) = n
|
||||
{
|
||||
@@ -1031,7 +1032,7 @@ fn mark_unset(b: &mut NativeBox, span: u8) -> Result<(), String> {
|
||||
match &b.content {
|
||||
BoxContent::Horizontal(v) => {
|
||||
for n in v {
|
||||
if let TextNode::Glue(g)
|
||||
if let TextNode::Glue(g) | TextNode::FontSpace(g, _, _)
|
||||
| TextNode::NamedGlue(g, _)
|
||||
| TextNode::Leaders(LeaderGlue { glue: g, .. }) = n
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user