comp • gb.sdl2 • font

Font (gb.sdl2)

This class represents an SDL font.

It is either any TTF font loaded from a file, or the default Gambas bitmap font embedded inside the component.

This class is not creatable.
This class acts like a
Return a font from its name. If the name is NULL, then the default font is returned.
read-only
static array.

Static methods

Constants
Load a TTF font from the disk.
Load  
This constant is the height of the default font in pixels.
DefaultHeight  

Properties

Methods
Return the font ascent in pixels.
Ascent  
Return or set if the font is bold.
Bold  
Return the font descent in pixels.
Descent  
Return if the font has a fixed width.
Fixed  
Return or set if the font is italic.
Italic  
Return the font name.
Name  
Return or set the font size in pixels.
Size  
Return the height in pixels of a specific text displayed with that font.
TextHeight  
Return the width in pixels of a specific text displayed with that font.
TextWidth