Can it be possible to access the device system fonts for use with the TextField functions?
I know passing nil, gives access to a default font, but it would be nice if we could pass in a series of other constants instead such as
TextField.SYSTEM
TextField.SYSTEM_BOLD
TextField.SYSTEM_ITALIC
TextField.SYSTEM_FANCY |
It'll save a lot of hassle setting up true type fonts (and potentially avoid any font licencing issues as well)
Also - I noticed a typo on the api docs, TextField.getText() is listed when it should be TextField:getText()
WhiteTree Games - Home, home on the web, where the bits and bytes they do play!
#MakeABetterGame! "Never give up, Never
NEVER give up!" -
Winston Churchill
Comments
I don't know if it's possible to freely distribute fonts coming with Linux (KDE, Gnome)? For example, this font family http://en.wikipedia.org/wiki/Droid_(font) has Apache license.
> Also - I noticed a typo on the api docs, TextField.getText() is listed when it should be TextField:getText()
Fixed
Is it just that the returned string pixels sizes are wrong (something we can live with) or is it more serious than that?
#MakeABetterGame! "Never give up, Never NEVER give up!" - Winston Churchill
#MakeABetterGame! "Never give up, Never NEVER give up!" - Winston Churchill
Yes. for example when you render the font with size 16, on one system it is rendered bigger than the other.
I think no. I prefer adding the .ttf file to the project instead of embedding to the gideros runtime. (both are same in terms of rendering).
Personally I'd just pick the most appropriate "size" to fit the layout requirement and not worry about it, the advantages (on ios at least) is that you get access to all the nice Apple font's for free and if your doing a utility app it means you can keep to the same "look and feel" as the rest of the apps.
#MakeABetterGame! "Never give up, Never NEVER give up!" - Winston Churchill
I totally agree with the "look and feel" issue. It's hard to achieve the same look and feel with user provided .ttf fonts and FreeType2 rendering. Let me do some tests with CoreGraphics and FreeType2. I can put this to the roadmap.
#MakeABetterGame! "Never give up, Never NEVER give up!" - Winston Churchill
#MakeABetterGame! "Never give up, Never NEVER give up!" - Winston Churchill