Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#9422 closed enhancement (fixed)

dojox GFX has no getTextHeight

Reported by: Mike Wilcox Owned by: Mike Wilcox
Priority: high Milestone: 1.4
Component: DojoX GFX Version: 1.3.0
Keywords: Cc: Eugene Lazutkin
Blocked By: Blocking:


There is a getTextWidth, but not height.

Will implement getTextBoundingBox(), and getTextWidth and getTextHeight which will get their properties from the first.

Will be added to svg, vml, and silverlight renderers.

Change History (3)

comment:1 Changed 13 years ago by Mike Wilcox

Resolution: fixed
Status: newclosed

(In [17997]) Fixes #9422 - Added getTextBoundingBox and getTextHeight to renderers. \!strict

comment:2 Changed 13 years ago by liucougar

inline doc looks wrong to me: w/h should be width/height

comment:3 Changed 13 years ago by Eugene Lazutkin

Wow! Drive by shooting! :-)

Actually it was intentional that gfx didn't have getTextHeight() or anything similar. This information could be easily taken from the font structure instead of doing very expensive yet predictable calculations.

Note: See TracTickets for help on using tickets.