Page 1 of 1

Fonts

Posted: Thu Mar 03, 2016 7:28 am
by aliyehia
Hi All

I used default fonts from livecode list "Arial"

At development it is appeared like that
A10.PNG
on android mobile is appeared wrong like that
IMG-20160303-WA0006.jpg
It is not correct fonts.

How can I fix it?

What's android Arabic fonts can I use? Or what 's the android fonts can I test it suitable for Arabic fonts or not?

Re: Fonts

Posted: Thu Mar 03, 2016 9:36 am
by SparkOut
I don't know what standard Android fonts would be suitable for Arabic, but a few things to be aware of:

1) ttf/otf fonts can be included in the "copy files" section of the standalone settings when you are building the app.
2) the filename included at that point may or may not resemble the actual font name you need to set in the app.
3) even if you have installed/included the same font file on both desktop and Android, the font name may differ on each platform.
3) font and filenames are case sensitive on Android.

Hence you can include the files for use on the device, but you will have to play with the fontNames function (see "fontNames" in the dictionary) to verify what specific font name to use to set for your app (by script, within the app on preOpenStack or such - you won't necessarily be able to set the font name in the IDE for display on the app). There is a little section in the dictionary under fontNames to see regarding mobile deployment.

Re: Fonts

Posted: Fri Mar 04, 2016 10:10 pm
by aliyehia
Thanks, it works

Re: Fonts

Posted: Fri Mar 18, 2016 5:31 pm
by JeroenL
Don't you have any problems with spaces being either too large or words overlapping?
And with the Arial font, the diacritics (dashes below and above the letters) are very close to the letters and sometimes overlap, with my Android builds using Livecode 7.1.3

The word spacing issues have already been confirmed as bug id=15635
But I'm still waiting for the solution.