Implement XeTeX native word ActualText across shaping and shipout
This commit is contained in:
1 parent
97319d751b
commit
7e5428ec35
15 files changed
+143
-24
No files matched your search
@@ -851,6 +851,10 @@ fn page_content(
|
||||
let px = |x| pt(x - h);
|
||||
let py = |y| pt(height - y - v);
|
||||
match item {
|
||||
DisplayItem::OpenTypeActualText(text) => match text {
|
||||
Some(text) => opentype_fonts::begin_actual_text(&mut content, text, true),
|
||||
None => content.push_str("EMC\n"),
|
||||
},
|
||||
DisplayItem::OpenTypeGlyph { x, y, size, font, glyph, text, .. } => {
|
||||
opentype[&font.id].paint(
|
||||
&mut opentype_text, &mut content, font.id, *glyph, text,
|
||||
|
||||
Reference in new issue
Block a user