Fixes ascent and descent values for windows gdi

This commit is contained in:
Yury Delendik 2012-08-29 12:19:09 -05:00
parent 4550ffe14e
commit 93f9efde39

View File

@ -4420,6 +4420,13 @@ var CFFParser = (function CFFParserClosure() {
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;
if (cff.isCIDFont) {
var fdArrayIndex = this.parseIndex(topDict.getByName('FDArray')).obj;