mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
Fixes ascent and descent values for windows gdi
This commit is contained in:
parent
4550ffe14e
commit
93f9efde39
1 changed files with 7 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue