1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-26 10:08:06 +02:00

Merge pull request #4089 from yurydelendik/issue3725

Takes ascent/descent in account in the text layer
This commit is contained in:
Brendan Dahl 2014-01-16 13:12:04 -08:00
commit ff66c23e6e
5 changed files with 19 additions and 8 deletions

View file

@ -2253,6 +2253,8 @@ var Font = (function FontClosure() {
this.wideChars = properties.wideChars;
this.hasEncoding = properties.hasEncoding;
this.cmap = properties.cmap;
this.ascent = properties.ascent / PDF_GLYPH_SPACE_UNITS;
this.descent = properties.descent / PDF_GLYPH_SPACE_UNITS;
this.fontMatrix = properties.fontMatrix;
if (properties.type == 'Type3') {