Bambookit Home    Bambookit GUI Tutorial

Back    Next   

II. GUI Basics

Chapter 9. Widgets Styles

Font Name

Method signature

setFontName = "[string name]"
[string name] Set the font name of this control. Valid values are: serif, sansserif, monospaced, dialog, dialoginput, symbol.

NOTE: If set this property is inherited by its children.
Fonts settings are inherited by widgets from their container parents. Therefore, if you set font for the widget-containers, that font applies to the font of all widgets and nested containers, unless you override the settings. This also means that if you override the font setting of a nested container, then each of its widgets inherits the new font of that container.


In this example we will be using a button widget

.. setFontName="serif"

.. setFontName="sansserif"

.. setFontName="monospaced"

See also 'Font Style'

Back    Next