Hi,

  I have been trying to figure out precisely how drawPosText positions
characters on a Bitmap.

  According to the documentation, I pass drawPosText an array "pos"
which is "Array of [x,y] positions, used to position each character."
If I pass position {0,0} to drawPosText, it looks like the characters
are drawn up and to the right, i.e. the characters are drawn off of
the top of the Bitmap (which, as I understand it, has its origin as
{0,0} at top-left and bottom-right is {1,1}).  Is this assumption
correct?

  If so, presume this means that I need to offset the y position by
the height of a character, but I don't know exactly how drawPosText is
calculating character height.  Using Paint.FontMetrics, is it the
difference between top and bottom or ascent and descent, and does it
include leading or not (or is there some entirely different way I'm
supposed to get this information)?

 Thanks,

Nathan

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to