Home / comp / gb.qt / font 
Font (gb.qt)
This class represents a font used for drawing or displaying text in controls.

Symbols
This class is creatable.
This class acts like a read-only array.

Properties  Methods 
Ascent  Bold  Descent  Fixed  Grade  Italic  Name  Scalable  Size  StrikeOut  Styles  Underline    Height  ToString  Width   

The font object from the Control.Font property keeps a link to the control it comes from, so that modifying this font object modifies the font used for drawing the control.

Example
' Set the font used by MyTextBox for displaying its text
MyTextBox.Font.Name = "Utopia"

Example
' Set the font used by MyTextBox for displaying its text from a string containing the font values
MyTextBox.Font = Font["Arial, 12, bold"]