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.

Этот класс несоздаваемый.

Этот класс представлен как только для чтения статический массив.

Константы
DefaultHeight   This constant is the height of the default font in pixels.

Статические методы
Load   Load a TTF font from the disk.

Свойства
Ascent   Return the font ascent in pixels.
Bold   Return or set if the font is bold.
Descent   Return the font descent in pixels.
Fixed   Return if the font has a fixed width.
Italic   Return or set if the font is italic.
Name   Return the font name.
Size   Return or set the font size in pixels.

Методы
TextHeight   Return the height in pixels of a specific text displayed with that font.
TextWidth   Return the width in pixels of a specific text displayed with that font.