Android Font Resizing

This is the place to discuss anything relating to MobGUI

Moderators: heatherlaine, kevinmiller, robinmiller, malte, splash21

Post Reply
andyh1234
Posts: 442
Joined: Mon Aug 13, 2007 4:44 pm
Location: Eccles UK
Contact:

Android Font Resizing

Post by andyh1234 » Mon Nov 14, 2011 8:16 pm

Hi,

Would it be possible to remember the font sizes used, as well as the control positions for different resolutions, or is there a way to specify the font sizes somehow based on the resolution?

The interface resizes nicely when I enter different screen sizes, however the fonts always jump back to the default settings which are too big for the 320x320 screen, and too small for the 480x800 layout.

Thanks

Andy

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: Android Font Resizing

Post by Mark » Tue Nov 15, 2011 2:16 am

Hi Andy,

You can write a script that sets the textSize of each object, depending on the screenRect.

Kind regards,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

andyh1234
Posts: 442
Joined: Mon Aug 13, 2007 4:44 pm
Location: Eccles UK
Contact:

Re: Android Font Resizing

Post by andyh1234 » Tue Nov 15, 2011 9:47 am

Thanks Mark, thats the path im going down at the moment but thought as MobGUI already memorises all the rects for everything for different resolutions, it might be possible for it to remember the font sizes as well as this would make life a lot easier, rather than having to hard code sizes for every possible screen size.

Andy

Post Reply

Return to “MobGUI”