How to match FontSize of newTextField() to a String displayed using newText()?

In my app, I am trying to get a few user input data …

Input field label strings are using display.newText() function specifying a specific font - that scales for different screen sizes.

How to similarly scale user input data text (from display.newTextField) font size to match the label ? [import]uid: 48484 topic_id: 30821 reply_id: 330821[/import]

Yeah, I can’t figure this out either.

Anyone???
[import]uid: 13859 topic_id: 30821 reply_id: 127287[/import]

I haven’t worked on this yet, but here’s a link to the tutorial that suggests how we may go about accomplishing it:

Look at the section entitled Not Normal Display Objects!
http://www.coronalabs.com/blog/2012/02/07/tutorial-text-input-with-native-ui/

I hope this helps.

Naomi [import]uid: 67217 topic_id: 30821 reply_id: 127351[/import]

Thanks for the link, Naomi.

The issue is with Custom fonts - especially on Android devices.

Font size for display.newText vs. display.newTextField varies for different android devices - a challenge to come up with one. Also, display.newTextField height need to be adjusted for different devices.

i wish and hope there is a workaround for this issue. [import]uid: 48484 topic_id: 30821 reply_id: 127361[/import]

@ZippyMind, as far as I know, there isn’t any workaround for it at this time. And… I thought I’d post a link to the topic thread about it, and I just noticed you have commented in that thread too, so I suppose you are very much aware of what Tom posted (in reply post #12) plus what @dennis20 posted (in reply post #20)… Anyhow, just in case other people are interested, here’s the link:

https://developer.coronalabs.com/forum/2012/08/14/bug-text-inside-nativenewtextfield-object-does-not-scale-device

Naomi [import]uid: 67217 topic_id: 30821 reply_id: 127373[/import]

@Naomi - Yes, I am following the newTextField thread for updates on the issue.

BTW, this one was created before I stumbled up on the other thread/discussion on the issue.
[import]uid: 48484 topic_id: 30821 reply_id: 127411[/import]

Yeah, I can’t figure this out either.

Anyone???
[import]uid: 13859 topic_id: 30821 reply_id: 127287[/import]

I haven’t worked on this yet, but here’s a link to the tutorial that suggests how we may go about accomplishing it:

Look at the section entitled Not Normal Display Objects!
http://www.coronalabs.com/blog/2012/02/07/tutorial-text-input-with-native-ui/

I hope this helps.

Naomi [import]uid: 67217 topic_id: 30821 reply_id: 127351[/import]

Thanks for the link, Naomi.

The issue is with Custom fonts - especially on Android devices.

Font size for display.newText vs. display.newTextField varies for different android devices - a challenge to come up with one. Also, display.newTextField height need to be adjusted for different devices.

i wish and hope there is a workaround for this issue. [import]uid: 48484 topic_id: 30821 reply_id: 127361[/import]

@ZippyMind, as far as I know, there isn’t any workaround for it at this time. And… I thought I’d post a link to the topic thread about it, and I just noticed you have commented in that thread too, so I suppose you are very much aware of what Tom posted (in reply post #12) plus what @dennis20 posted (in reply post #20)… Anyhow, just in case other people are interested, here’s the link:

https://developer.coronalabs.com/forum/2012/08/14/bug-text-inside-nativenewtextfield-object-does-not-scale-device

Naomi [import]uid: 67217 topic_id: 30821 reply_id: 127373[/import]

@Naomi - Yes, I am following the newTextField thread for updates on the issue.

BTW, this one was created before I stumbled up on the other thread/discussion on the issue.
[import]uid: 48484 topic_id: 30821 reply_id: 127411[/import]