You added this in getFont(): “If the text has no font attached, a NULL pointer is returned”.
As far as I can tell, it's impossible to create a text with no font. When does this case apply?
Edit: maybe it would be nice to be able to specify the default font, so you don't have to pass your font every time you create some text.
Edit 2: I'm stupid, I didn't notice the no-parameters constructor.
Edit 3: if it's still possible to create a Text object with no font by calling the no-parameters constructors, why isn't it possible anymore to create one with a string but no font?