2008-10-24, 02:31 PM
sub (or anyone else),
When I use the SkinHelper2.getNamedImage() to build an Image object from a text-bearing CompositeImage, I occasionally have text in the parameters that generates a clipped image (i.e. it goes off the end or is wrapped to two lines).
Is there a way to determine what the "natural" (unclipped) size of the DrawText element would be (for prescaling or pre-render text editing)?
When I use the SkinHelper2.getNamedImage() to build an Image object from a text-bearing CompositeImage, I occasionally have text in the parameters that generates a clipped image (i.e. it goes off the end or is wrapped to two lines).
Is there a way to determine what the "natural" (unclipped) size of the DrawText element would be (for prescaling or pre-render text editing)?