Page 1 of 1

set font style of native multiline

Posted: Mon Jul 07, 2014 11:35 am
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

Re: set font style of native multiline

Posted: Tue Jul 08, 2014 4:01 am
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

Re: set font style of native multiline

Posted: Tue Jul 08, 2014 4:50 am
by Jellobus
Hi Simon,

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

Thanks,

Louis

Re: set font style of native multiline

Posted: Tue Jul 08, 2014 4:58 am
by Simon
Hi,
Are you using droid or droid sans font? Or are you including a font?

Simon

Re: set font style of native multiline

Posted: Tue Jul 08, 2014 5:29 am
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

Re: set font style of native multiline

Posted: Tue Jul 08, 2014 6:33 am
by Simon
Hi Louis,
Sorry, it's in the Dictionary, set fontName is only iOS.

Simon

Re: set font style of native multiline

Posted: Tue Jul 08, 2014 7:25 am
by Jellobus
Hi Simon,

thanks! it still helped me.

Cheers,

Louis