TextField.Font.Size is read only.
You need to create a new font with either Font.CreateNew(MyTextSize), default font, or Font.CreateNew2(MyFontName, MyTextSize).
Or use the iXUI library and define the TextField as a B4XView and set TextFied.TextSize = MyTextSize