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

Takes ascent/descent in account in the text layer

This commit is contained in:
Yury Delendik 2014-01-08 13:50:52 -06:00
parent 4d01ff4079
commit 0131101275
5 changed files with 19 additions and 8 deletions

View file

@ -2183,6 +2183,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') {