Different text size on different devices

Hi All,

I’m having a wee bit of difficulty with a bug Ive just discovered in one of my apps.

I create a text object with

program_counter_label = display.newText(program_counter),x,y,native.systemFont,registerFontSize)

etc.

In another function I alter the size of the font depending on the numberbase in use (binary or hex)

if basemod = “binary” then program_counter_label.size = 9 else program_counter_label.size = 13 end

What I find is that the sizes are as expected on Ipad Retina the fontsize is as expected but on other devices the font appears smaller than expected (smaller on Kindle Fire HD say, and even smaller on iPhone 4).

Any ideas?

thanks

Martin

As always, RTFM. I didn’t check and wasted time.

In a separate thread there was a discussion on this known bug which is apparently solved in next public release. Brent has also given a workaround to use:

text.size = 24 / display.contextScaleX

from trial and error Ive discovered that it should be text.size = 24 * display.contextScaleX  and then changing text works on all devices. I will happily recode to remove the extra when possible. thanks Brent.

As always, RTFM. I didn’t check and wasted time.

In a separate thread there was a discussion on this known bug which is apparently solved in next public release. Brent has also given a workaround to use:

text.size = 24 / display.contextScaleX

from trial and error Ive discovered that it should be text.size = 24 * display.contextScaleX  and then changing text works on all devices. I will happily recode to remove the extra when possible. thanks Brent.