set font style of native multiline

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: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
Jellobus
Posts: 319
Joined: Tue Dec 10, 2013 2:53 pm

set font style of native multiline

Post by Jellobus »

Hi All,

Its sure that text font of Live Code field can be set. but Is it possible to set text font style of native multiline??
something like mobileControlSet "content", "textfont",san serif....


Thanks for your time!

Louis
Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: set font style of native multiline

Post by Simon »

Hi Louis,
somewhere in your stack add this;

Code: Select all

if the platform = "iphone" then set the textFont of this stack to "Helvetica"
But make sure you are using a font that's is on the system.

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!
Jellobus
Posts: 319
Joined: Tue Dec 10, 2013 2:53 pm

Re: set font style of native multiline

Post by Jellobus »

Hi Simon,

It seems not working on a native multiline of android device. Is it only working for iphone?

Thanks,

Louis
Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: set font style of native multiline

Post by Simon »

Hi,
Are you using droid or droid sans font? Or are you including a font?

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!
Jellobus
Posts: 319
Joined: Tue Dec 10, 2013 2:53 pm

Re: set font style of native multiline

Post by Jellobus »

Hi simon

I tried both adding font and choosing font (Droid Serif etc) from device system. Text font setting affects a LC field and buttons but not a native multiline..

Cheers,

Louis
Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: set font style of native multiline

Post by Simon »

Hi Louis,
Sorry, it's in the Dictionary, set fontName is only iOS.

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!
Jellobus
Posts: 319
Joined: Tue Dec 10, 2013 2:53 pm

Re: set font style of native multiline

Post by Jellobus »

Hi Simon,

thanks! it still helped me.

Cheers,

Louis
Post Reply