UI\Draw\Text\Font\Descriptor::__construct

(UI 0.9.9)

UI\Draw\Text\Font\Descriptor::__construct - Конструктор класу Font Descriptor

Опис

public UI\Draw\Text\Font\Descriptor::__construct
string$family,
float$size,
int$weight= UI\Draw\Text\Font\Weight::Normal,
int$italic= UI\Draw\Text\Font\Italic::Normal,
int$stretch= UI\Draw\Text\Font\Stretch::Normal
) .

Створює новий Font Descriptor

Список параметрів

family

Назва допустимого сімейства шрифтів.

size

Переважний розмір

weight

Константа UI\Draw\Text\Font\Weight

italic

Константа UI\Draw\Text\Font\Italic

stretch

Константа UI\Draw\Text\Font\Stretch