Text Style will not set to "Bold".

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

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Googie85
Posts: 199
Joined: Tue Aug 05, 2014 10:07 am

Text Style will not set to "Bold".

Post by Googie85 » Mon Jul 17, 2023 7:51 am

Hi Guys...

I have downgraded from LC 9.6.3 to LC 9.05 and I cannot set the text style of a field to "bold". The reason for downgrading is, the file size is 30mb smaller once compiled to an .apk file using the earlier version of LC.

Image

The text in the "Start Game" button is set to "Bold" but it will not reflect once installed on an Android Device. However, with LC 9.6.3, everything works fine.

Any ideas on what might be causing this or a remedy to fix this issue?

Many Thanks,

Googie.

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7238
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

Re: Text Style will not set to "Bold".

Post by jacque » Mon Jul 17, 2023 5:44 pm

LC used to implement artificial text styling where the text was adjusted to simulate styles. It's changed now to only use real font styles, the ones included in the font package. If you change the text font to one that includes real text styles it should work. Since you're on Android, try Roboto or Droid Sans.

If you want to keep the original font, see if there's a newer package that includes all style variations. You can add it to Copy Files in the standalone builder and script the app to start using the font.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9388
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: Text Style will not set to "Bold".

Post by richmond62 » Mon Jul 17, 2023 6:12 pm

You can also do something like this:

Code: Select all

import snapshot from button "Start Game"
in the messageBox.

This will give you an image (which you can use as a button) that will stay exactly the way you want it on any platform.

Post Reply

Return to “Android Deployment”