Canvas rendering issues / Text Transition rendering issues

Richard Bair richard.bair at
Mon Jan 7 13:59:34 PST 2013

On Jan 2, 2013, at 6:55 PM, Daniel Zwolenski <zonski at> wrote:

> Thanks for the feedback guys. Very helpful!
> I just did a quick test, changing the Labels to Text nodes and it has fixed
> the sudden jump at the end for the font transitions. I'm curious as to the
> fundamental difference between these two classes: why do we have both, what
> are their strengths and weaknesses and how are we as consumers of the API
> meant to know when to use what? The JavaDoc doesn't provide any kind of
> semantic clues to this that I can see.

There are basically 2 things that Label adds to the world: resizability and "labelFor" (register a mnemonic that will shift focus to the control that is this label is labeling). Because Label is resizable, we have to do something when the size of the control is less than needed to display all text. So Label implements ability to elide text.

Text is a 2D primitive, much like Rectangle or Circle. If you are animating text etc, the Text is often what you could use instead of Label (and of course Label is implemented by using Text).

I haven't looked at this issue so I don't know why Label is being problematic here whereas Text is not. It sounds like a bug to me! It can't just be pixel snapping of text can it?


More information about the openjfx-dev mailing list