#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: |
Description
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 12 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:3 Changed 12 years ago by
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.
(In [17997]) Fixes #9422 - Added getTextBoundingBox and getTextHeight to renderers. \!strict