Skip to content

Adds Text.getHeight #80

Closed
wants to merge 1 commit into from

2 participants

@enobrev
enobrev commented Oct 24, 2011

Uses code from Text.draw without actually drawing anything to
the canvas to measure the height of the text. Especially useful
for bottom or middle aligning text (vertically).

@enobrev enobrev Adds Text.getHeight
Uses code from Text.draw without actually drawing anything to
the canvas to measure the height of the text.  Especially useful
for bottom or middle aligning text (vertically).
01aea87
@gskinner
CreateJS member

I have implemented the same general logic, just piggy-backing on the existing _drawText() method to reduce the number of code lines required. Thanks for the contribution!

@gskinner gskinner closed this May 13, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.