Posted by mpymm
on February 1, 2008 at 11:27 AM PST
I'm trying to have a SGText node positioned so it's right aligned to a point in the graph. I think the idea is to use a SGAlignment transform with horizontal alignment set to TRAILING but there are a couple of issues. When the text changes it appears to jitter a bit - I'm rendering numbers and if the text changes from 100 to 200 it shifts a bit (I'm guessing the fractional width is changing but somehow it's being rendered starting at a pixel boundary). If the text gets longer (for example 100 to 10000) the bounds don't appear to change properly and only the rightmost part of the text renders. Can anyone suggest a good way of doing this?