setTextDatum and printToSprite #1861
-
Is text alignment possible with printToSprite? Basic example taken from a slightly modified Font_Demo_4_Array
I've tried creating the sprite first and printing to it as well with no luck either. Always stuck at left top justified. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
printToSprite was intended to simplify the use of test rendering via sprites. If the sprite does not exist then it will be created as a minimal size to hold the text, in this case the datum use is not relevant. In a psrite that has slready been created the printToSprite function can only be used to print at a cursor position and datum is not used. See Font_Demo_4_xxxx for details of use. |
Beta Was this translation helpful? Give feedback.
printToSprite was intended to simplify the use of test rendering via sprites. If the sprite does not exist then it will be created as a minimal size to hold the text, in this case the datum use is not relevant. In a psrite that has slready been created the printToSprite function can only be used to print at a cursor position and datum is not used. See Font_Demo_4_xxxx for details of use.