Customer fonts in Android 7.0

The place to discuss anything and everything about running your LiveCode on Android

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Customer fonts in Android 7.0

Postby terryho » Sat May 13, 2017 6:00 am

Hi all

For those who have font problem in Android 7.0. I use the following method to include customer fonts in my apps and fix my fonts problem. The major size effect is include a large fonts file in the apps. The following is the step, please test it and comment.

How to use

1. open attach stack
2. Go to the following web site to download the fonts https://www.google.com/get/noto/
3. Please download
a. Noto Sans CJK SC or
b. Noto Sans CJK TC
4. Unzip the font file and select the fonts your like, there are more then five fonts in the unzip folder
5. I Choose “NotoSansCJKtc-Regular.otf” and rename the extension to “ttf”
6. Then include the file in your “copy file” in Standalone application setting
7. Then run the application in the Android emulator or drive
8. Push the “Font” button to select the font
9. You will see the “Note Sans CJK TC Regular” in the last of the pick list, select it,
(please note the font name is not like the font file name)
10. Then the font of card 1 will change.
11. Push go to card 2, then Card 2 fonts and all object will change to the select fonts.
12. Please check our code how to change the fonts when open the card

Please note my stack work on LC8, but can not work in LC9

Regards

Terry Ho
Attachments
Font Setting.livecode.zip
Font stack
(3.75 KiB) Downloaded 7 times
terryho
 
Posts: 57
Joined: Mon Nov 05, 2012 2:53 pm

Re: Customer fonts in Android 7.0

Postby MaxV » Tue May 23, 2017 3:44 pm

Did you see this: http://livecode.wikia.com/wiki/Android:_font_issues
and this: http://livecodeitalia.blogspot.it/2015/ ... droid.html
??
TTF is always been supported. OTF was later added at least in 1.6 and later, but partially. Some TTF fonts Android doesn't like.
Livecode Wiki: http://livecode.wikia.com
My blog: http://livecodeitalia.blogspot.it
To post code use this: http://tinyurl.com/ogp6d5w
MaxV
 
Posts: 1184
Joined: Tue May 28, 2013 2:20 pm
Location: Italy


Return to Android Deployment

Who is online

Users browsing this forum: No registered users and 2 guests

cron