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