Taming the textField font size

Thanks Steward, will pass this along. [import]uid: 52491 topic_id: 19259 reply_id: 102904[/import]

Was this resolved? I’m looking for a solution for this as well. [import]uid: 129450 topic_id: 19259 reply_id: 126100[/import]

Hey there, just looked this up - here is the fogbugz reply from Danny who closed the case;


The fonts in native.newTextField and native.newTextBox do not dynamically scale. If you select 12 points, it will be a native 12 points on a iPad and iPad Retina with Dynamic Scaling on.

You need to scale the font yourself.

You can read more about this via the below link:

http://www.coronalabs.com/blog/2012/08/22/faq-wednesday-mac-simulator-and-native-fonts/

Hope this helps!

Peach :slight_smile: [import]uid: 52491 topic_id: 19259 reply_id: 126136[/import]

Was this resolved? I’m looking for a solution for this as well. [import]uid: 129450 topic_id: 19259 reply_id: 126100[/import]

Thanks Peach!

Well it does help in the way that I now know I have to scale it myself, I do however have no idea on how to do this properly.

Since I can’t find a straight answer for this I assume that it is in fact really easy, but if it is or not doesn’t really matter as there should be a code example for this since it is something we have to do if we use text fields and text boxes. [import]uid: 129450 topic_id: 19259 reply_id: 126350[/import]

Hey there, just looked this up - here is the fogbugz reply from Danny who closed the case;


The fonts in native.newTextField and native.newTextBox do not dynamically scale. If you select 12 points, it will be a native 12 points on a iPad and iPad Retina with Dynamic Scaling on.

You need to scale the font yourself.

You can read more about this via the below link:

http://www.coronalabs.com/blog/2012/08/22/faq-wednesday-mac-simulator-and-native-fonts/

Hope this helps!

Peach :slight_smile: [import]uid: 52491 topic_id: 19259 reply_id: 126136[/import]

Thanks Peach!

Well it does help in the way that I now know I have to scale it myself, I do however have no idea on how to do this properly.

Since I can’t find a straight answer for this I assume that it is in fact really easy, but if it is or not doesn’t really matter as there should be a code example for this since it is something we have to do if we use text fields and text boxes. [import]uid: 129450 topic_id: 19259 reply_id: 126350[/import]