I just wanted to implement a listeners that changes the font size in the TextField if certain conditions are met. Turns out this seams to be not doable if I would like to preserve the font weight and posture. Why ? Because:
- I cannot change the the properties of a Font object,
- I have the font method but to create a new Font object but there are not getters for weight and posture,
- the class is final.
Personally I view this as a design bug (btw. the whole Font class seams to be a bad example of OPP). Lets at least overcome this by adding those two getters.
- I cannot change the the properties of a Font object,
- I have the font method but to create a new Font object but there are not getters for weight and posture,
- the class is final.
Personally I view this as a design bug (btw. the whole Font class seams to be a bad example of OPP). Lets at least overcome this by adding those two getters.