mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-10 18:25:37 +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
|
@ -994,6 +994,8 @@ var CanvasGraphics = (function CanvasGraphicsClosure() {
|
|||
geometry.fontName = font.loadedName;
|
||||
geometry.fontFamily = font.fallbackName;
|
||||
geometry.fontSize = this.current.fontSize;
|
||||
geometry.ascent = font.ascent;
|
||||
geometry.descent = font.descent;
|
||||
return geometry;
|
||||
},
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue