Custom Fonts on Android

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: Klaus, FourthWorld, heatherlaine, kevinmiller

Post Reply
William Jamieson
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 212
Joined: Fri Feb 01, 2013 1:31 am
Location: Palo Alto, CA put williamdjamieso into tEmail / put n@gmail.com after tEmail/ revmail tEmail
Contact:

Custom Fonts on Android

Post by William Jamieson » Wed Jan 07, 2015 6:00 pm

Hello. I have a very simple stack. Its a button and a field where I am trying to load a font onto my Android device using this tutorial here

http://lessons.runrev.com/s/lessons/m/4 ... nts-on-ios

Here is my code

Code: Select all

on mouseUp
   put the fontnames into pList
   if the environment is "mobile" then
      mobilePick pList
      put the result into tLine
      put line tLine of pList into tFont
      answer tFont
   else
      put "Wingdings" into tFont
   end if
   set the textfont of fld "Field" of this card to tFont
end mouseUp
The result is that on Desktop, it works fine. The field switches to wingdings. On Android, the system shows all the fonts, I click wingdings from the list, and then it answers wingdings, and then nothing.

Did I miss something? (The file I used specifically said it was for android and it did appear in the fontnames)

attaching files below

Thanks for your help!

-Will
Attachments
wingdings.zip
Android wingding font to include
(48.91 KiB) Downloaded 58 times
Font Setting.zip
Here is the lc stack
(1.46 KiB) Downloaded 57 times

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”