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

(UI 0.9.9)

UI\Draw\Text\Font\Descriptor::__construct — 새 글꼴 설명자 생성


설명

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
)
                

새로운 글꼴 설명자를 구성해야 합니다.


매개변수

family
유효한 글꼴 패밀리의 이름
size
선호하는 크기
weight
UI\Draw\Text\Font\Weight 상수
italic
UI\Draw\Text\Font\Italic 상수
stretch
UI\Draw\Text\Font\Stretch 상수

반환 값