Page 1 of 1

iOS font only displaying correctly on certain iPads

Posted: Thu Aug 20, 2015 9:49 am
by Scoperzor
I have two iPads I have put my app onto, one being an iPad 3 mini retina and the other an iPad 2. On the iPad 3 the font displays correctly, but not on the iPad 2. I also updated to the latest version of iOS on the iPad 2.

I've already followed this lesson in full: http://lessons.runrev.com/m/4069/l/2921 ... nts-on-ios

I have a button with the following:

Code: Select all

on mouseUp
   answer the textFont of field "main_heading_label" -- ANSWERS Helvetica Neue UltraLight
   answer the textstyle["bold"] of field "main_heading_label" -- ANSWERS false
   put the fontnames into field "field"
   sort field "field"
   set the textFont of field "main_heading_label" to "Helvetica Neue Light"
   wait two seconds
   set the textFont of field "main_heading_label" to "Helvetica Neue UltraLight" -- THE OTHER TWO FONTS WORK, THIS ONE DISPLAYS BOLDER THAN IT SHOULD
   wait two seconds
   set the textFont of field "main_heading_label" to "Helvetica Neue"
end mouseUp
The font I am looking to set the field to is Helvetica Neue UltraLight. When it cycles through the font changes, only this font does not display correctly (it appears too bold, even though bold is false). The font name is also listed in field "field" and the label is set to that font successfully at the start. I also copied all the ttf files of Helvetica Neue in the standalone settings.

Any ideas?

Re: iOS font only displaying correctly on certain iPads

Posted: Thu Aug 20, 2015 11:14 am
by bn
Hi Scoperzor,

have a look here:
http://iosfonts.com

they list all the fonts for iOS devices and system version and available fonts.

Note they spell it differently, maybe worth a try.

Kind regards
Bernd

Re: iOS font only displaying correctly on certain iPads

Posted: Thu Aug 20, 2015 11:30 am
by Scoperzor
So if that particular font was installed since iOS 5, and both iPads are fully updated, then it makes sense that it would recognise it when I answer the textFont in the button. According to the answers, both textFonts are exactly the same, and are spelled as "Helvetica Neue UltraLight", but they appear different.

Edit: Tested setting the textFont of the field to ""Helvetica Neue UltraLight" in one button and "Helvetica Neue-UltraLight" in another. On the iPad 2 the font does not change, whereas on the iPad 3 it changes correctly between a thin version (without the dash) and a bolder version (with the dash).

Re: iOS font only displaying correctly on certain iPads

Posted: Thu Aug 20, 2015 2:09 pm
by LCNeil
Hi Scoperzor,

This looks to be a bug as I can replicate on our dev iPad2 and it did raise another bug which is apps fail to launch on iPad 2 from standalones built with 7.1(RC+DP1).

I also tested on the iPad2 simulator and setting the font works so it also looks to be device specific.

If possible, could you file a report on this and our QC team will investigate it ASAP.

Kind Regards,

Neil Roger
--
LiveCode Support Team ~ http://www.livecode.com
-

Re: iOS font only displaying correctly on certain iPads

Posted: Thu Aug 20, 2015 4:30 pm
by LCNeil
I have some half-good news.

If you download 6.7.7 (rc2) from here

http://downloads.livecode.com/livecode/

The font issue is resolved. This means that when 7.1 building is working, the issue may be resolved in LC 7

Kind Regards,

Neil Roger
--
LiveCode Support Team ~ http://www.livecode.com
-

Re: iOS font only displaying correctly on certain iPads

Posted: Fri Aug 21, 2015 6:49 am
by Scoperzor
Thanks Neil. If you say it will be resolved in 7.1, would you still like me to submit the bug report or is that handled? Will test on 6.7.7 and update here.