Measure native XeTeX glyphs and break after mapped dashes
This commit is contained in:
1 parent
c548ca8e9f
commit
facecbf790
9 files changed
+332
-35
No files matched your search
@@ -608,8 +608,9 @@ pub(super) fn hpack(
|
||||
}
|
||||
TextNode::OpenType(run) => {
|
||||
width += run.width;
|
||||
height = height.max(run.font.ascent);
|
||||
depth = depth.max(run.font.descent);
|
||||
let [run_height, run_depth] = run.height_depth();
|
||||
height = height.max(run_height);
|
||||
depth = depth.max(run_depth);
|
||||
}
|
||||
TextNode::Rule(r) => {
|
||||
let (w, h, d) = r.dimensions();
|
||||
|
||||
Reference in new issue
Block a user