Hi, it would be great to have drawFont selectable anchoring. At this moment it's by default Left Top. And it's complicated (to say the least) to place dynamic text at the bottom right corner of the window. Bottom of text area is quite easy to compensate "
lineCount*(fontSize + lineSpacing)", but right corner is wildly variable.
So, aligns (left, center, right) or anchors would be very handy. Both would be better, because text area have anchoring points and you can align inside as you wish. But doubt if so many users would use both options.
Proposal examples:
"drawFont(text, x, y, alpha, anchor)" with anchors as integer 1-9, align matrix
"drawFont(text, x, y, alpha, align)" align as integer 1-3, left, center, right
Why:
Now, for any new text item, which is aligned right, i need to create and call different function each time "graphics.addDrawFunc("selectedText_01()", 0)
", "graphics.addDrawFunc("selectedText_02()", 0)
" and in each i need to manually define position.
My idea is to call same "graphics.addDrawFunc("selectedItem('Something smelly')", 0)" and pass different item names. That way i have just one "selectedItem(name)" function for all my selected item messages, without worrying about position manual recalculation each time (and what a headache, if you will change font size in later development stage).
P.S.: did i missed something or there's another way?