Implement XeTeX OpenType horizontal scaling across layout and preview
This commit is contained in:
1 parent
cc0246016d
commit
330ecdd03c
7 files changed
+109
-26
No files matched your search
@@ -410,7 +410,8 @@ impl SourceMap {
|
||||
let ascent = scale(font.ascent);
|
||||
let descent = scale(font.descent);
|
||||
Some((PaintKind::OpenTypeGlyph { font: font.id.index(), glyph: *glyph }, Bounds {
|
||||
x: *x, y: y - ascent, width: *advance, height: ascent + descent,
|
||||
x: x + advance.min(&0), y: y - ascent,
|
||||
width: advance.abs(), height: ascent + descent,
|
||||
}))
|
||||
}
|
||||
DisplayItem::Rule {
|
||||
|
||||
Reference in new issue
Block a user