A recent update changed the font size parameter to int. To me, this makes no sense, as I use the size to scale fonts and therefore values would need to be floats. Floats have also been the standard behavior in legacy and AS.
In the ActionScript documentation, it calls it an Object because it can be null. In Haxe, we have the handy Null type that can wrap other types, so Null<Int> (for example) is an option.
For a long time, I thought that these were float values, but realized these are integer values. We try to impose the right types over the Flash API, though I understand that in ActionScript, float values convert to integers without warnings, as they do in Haxe.
If we need to use Float in TextFormat for convenience, I’m open to it. Otherwise I think Int is the real type we were looking for