|
|
@ -257,8 +257,8 @@ var CFFParser = (function CFFParserClosure() { |
|
|
|
var fontBBox = topDict.getByName('FontBBox'); |
|
|
|
var fontBBox = topDict.getByName('FontBBox'); |
|
|
|
if (fontBBox) { |
|
|
|
if (fontBBox) { |
|
|
|
// adjusting ascent/descent
|
|
|
|
// adjusting ascent/descent
|
|
|
|
properties.ascent = fontBBox[3]; |
|
|
|
properties.ascent = Math.max(fontBBox[3], fontBBox[1]); |
|
|
|
properties.descent = fontBBox[1]; |
|
|
|
properties.descent = Math.min(fontBBox[1], fontBBox[3]); |
|
|
|
properties.ascentScaled = true; |
|
|
|
properties.ascentScaled = true; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|