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
|
@ -954,6 +954,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