guiFonts

To view this content, you need to install Java from java.com

 [Source Code: guiFonts ] [Built with Processing]

This is applet is designed to demonstrate applying specific custom fonts to MyGUI elements.

The default font used is Arial-48, but in the example below you should be able to see how custom fonts can be set to individual items through the use of instances of MyGUIStyle objects. MyGUIStyle's are passed by reference and so changing or setting the default style of the MyGUI will affect all subobjects. To change the style of a specific object, or group of objects you should create a new instance of a MyGUIStyle object and use the setStyle(newStyle) method. This individual style contains properties for colours and fonts.

This applet also demonstrates the use of a MyGUI group and how subobjects will inherit position and rotational properties of their parent.