Stipulate Font Size

Discuss GUI programming with the MUI Royale plugin here
Post Reply
djrikki
Posts: 682
Joined: Wed Apr 06, 2011 12:26 am

Stipulate Font Size

Post by djrikki » Mon Jan 07, 2013 7:24 pm

How do I stipulate a particular Label/Text object to be a particular font size? Or do I have default to using a bridge?
Evolve - Rapid GUI Development tool for MUI Royale and RapaGUI
http://myevolve.wordpress.com

Mazze
Posts: 61
Joined: Thu May 06, 2010 8:08 pm

Re: Stipulate Font Size

Post by Mazze » Mon Jan 07, 2013 10:33 pm

See "Area.Font" in MUIRoyale documentation.

djrikki
Posts: 682
Joined: Wed Apr 06, 2011 12:26 am

Re: Stipulate Font Size

Post by djrikki » Tue Jan 08, 2013 12:02 am

Thanks, but doesn't answer the question, MUI Royale docuementation explains that it expects a string here 'tiny', 'normal', 'big' etc... not a number, e.g. 72 point font.
Evolve - Rapid GUI Development tool for MUI Royale and RapaGUI
http://myevolve.wordpress.com

Mazze
Posts: 61
Joined: Thu May 06, 2010 8:08 pm

Re: Stipulate Font Size

Post by Mazze » Tue Jan 08, 2013 9:34 pm

In the programming language C you can use a "struct TextFont*" with the MUIA_Font attribute.
http://www.sasg.com/mui/autodocs/MUI_Ar ... #MUIA_Font
There you can define a font with name and size.

Unless Andreas add a way to add a font specification to MUIRoyale you are limited to the special values like "Big". (Correct me if I'm wrong, Andreas)

User avatar
airsoftsoftwair
Posts: 2506
Joined: Fri Feb 12, 2010 3:33 pm
Location: Germany
Contact:

Re: Stipulate Font Size

Post by airsoftsoftwair » Thu Jan 10, 2013 1:04 pm

Yes, there's currently no way to use a custom font size because I think it's against the MUI philosophy to use hard-coded font sizes or faces.

Post Reply