Execute explicit XeTeX glyph nodes across native layout and export
This commit is contained in:
1 parent
a0922d0105
commit
b88283f493
17 files changed
+185
-43
No files matched your search
@@ -354,7 +354,9 @@ impl NativeBox {
|
||||
TextNode::Glyph { glyph, .. }
|
||||
| TextNode::Box(glyph)
|
||||
| TextNode::MathChar(glyph) => HorizontalItem::Box(glyph.clone()),
|
||||
TextNode::OpenType(run) => HorizontalItem::Box(crate::opentype::horizontal_box(run)),
|
||||
TextNode::OpenType(run) | TextNode::ExplicitOpenTypeGlyph(run) => {
|
||||
HorizontalItem::Box(crate::opentype::horizontal_box(run))
|
||||
}
|
||||
TextNode::Rule(r) => {
|
||||
HorizontalItem::Box(r.horizontal_item(self.width, self.height, self.depth))
|
||||
}
|
||||
@@ -707,7 +709,7 @@ pub(super) fn hpack_with_direction_report(
|
||||
height = height.max(glyph.height - shift);
|
||||
depth = depth.max(glyph.depth + shift);
|
||||
}
|
||||
TextNode::OpenType(run) => {
|
||||
TextNode::OpenType(run) | TextNode::ExplicitOpenTypeGlyph(run) => {
|
||||
width += run.width;
|
||||
let [run_height, run_depth] = run.height_depth();
|
||||
height = height.max(run_height);
|
||||
|
||||
Reference in new issue
Block a user