Fixes ascent and descent values for windows gdi
This commit is contained in:
parent
4550ffe14e
commit
93f9efde39
@ -4420,6 +4420,13 @@ var CFFParser = (function CFFParserClosure() {
|
|||||||
properties.unitsPerEm = 1 / fontMatrix[0];
|
properties.unitsPerEm = 1 / fontMatrix[0];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var fontBBox = topDict.getByName('FontBBox');
|
||||||
|
if (fontBBox) {
|
||||||
|
// adjusting ascent/descent
|
||||||
|
properties.ascent = fontBBox[3];
|
||||||
|
properties.descent = fontBBox[1];
|
||||||
|
}
|
||||||
|
|
||||||
var charset, encoding;
|
var charset, encoding;
|
||||||
if (cff.isCIDFont) {
|
if (cff.isCIDFont) {
|
||||||
var fdArrayIndex = this.parseIndex(topDict.getByName('FDArray')).obj;
|
var fdArrayIndex = this.parseIndex(topDict.getByName('FDArray')).obj;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user