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

@ -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;
},