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:
parent
4d01ff4079
commit
0131101275
5 changed files with 19 additions and 8 deletions
|
@ -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') {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue