API 参考
正在准备搜索索引…

通过 Rml::LoadFontFace 以显式字体族注册的文件字体。

interface PreloadFont {
    faceIndex?: number;
    fallback?: boolean;
    family: string;
    source: string;
    style?: FontStyle;
    weight?: number;
}
源码与继承
成员目录6

属性

属性

faceIndex?: number

非负 int32 字体集合索引,默认 0。

源码与继承
fallback?: boolean

注册为后备字体,默认 false。

源码与继承
family: string

RCSS 中使用的字体族名称。

源码与继承
source: string

按运行时根目录规则解析的文件路径。

源码与继承
style?: FontStyle

字体样式,默认 Normal。

源码与继承
weight?: number

Auto(0)或 1–1000 的整数,默认 Auto。

源码与继承

Icons made by Lorc, Delapouite & Skoll · game-icons.net · CC BY 3.0