Hi everyone
I'm having a strange font size issue using an external font.
The fonts I'm using are Gill Sans MT.ttf and Gill Sans MT Bold.ttf which I have set in the Copy Files panel, and text in fields and on buttons have been set to use these fonts from the picker.
In the Android simulator everything works fine, the font face and size are correct. But on a real device some, not all,fields and buttons have the correct font but the size is wrong.
Going back to the property inspector in the IDE I find that for the fields and buttons that are displaying incorrect size the size number is in italics.
If I click size up/down then the italics disappear, and the font then displays correctly on the real device.
There are a lot of instances of these fonts in the stack, so I've tried re-setting the fontSize property in script but this doesn't work. The size remains in italics. it only changes if I use the up/down buttons.
So what is different when using the up/down buttons? I'm using Livecode 9.6.9 (rc2)
Thanks
Steve
Strange font size issue
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- VIP Livecode Opensource Backer
- Posts: 7257
- Joined: Sat Apr 08, 2006 8:31 pm
- Location: Minneapolis MN
- Contact:
Re: Strange font size issue
Italics mean the property is inherited. You can either set the font size specifically on each field, which is what the arrow buttons do, or set the size in the card, group, or stack so it will inherit on all fields that have no size set. Apparently your stack is using 12 point text so unspecified fields will display as 12 point.
You can set the size in a script but you'll need to save the stack for it to stick. This is a one-time thing during development usually.
You can set the size in a script but you'll need to save the stack for it to stick. This is a one-time thing during development usually.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com