-
Enhancement
-
Resolution: Won't Fix
-
P4
-
None
-
fx1.0
The Text component has some weird issues that feel inconsistent with the rest of the core components.
1. TextOrgin should be set to TextOrgin.TOP by default, not TextOrigin.BASELINE. It took me a while to understand why none of my layout calculations were working as expected. Likewise I've seen alot of code online from other developers that don't know they're working in BASELINE and just add the size of the font on to their translateY position values
2. x and y values seem inconsistent or unecessary, either settle on translateX, translateY for all components or x,y values
1. TextOrgin should be set to TextOrgin.TOP by default, not TextOrigin.BASELINE. It took me a while to understand why none of my layout calculations were working as expected. Likewise I've seen alot of code online from other developers that don't know they're working in BASELINE and just add the size of the font on to their translateY position values
2. x and y values seem inconsistent or unecessary, either settle on translateX, translateY for all components or x,y values