Up to date
This page is up to date for Godot 4.2
.
If you still find outdated information, please open an issue.
ResourceImporterBMFont¶
继承: ResourceImporter < RefCounted < Object
导入 BMFont(.fnt
)格式的位图字体。
描述¶
BMFont 格式是由 BMFont 程序创建的格式。也存在许多与 BMFont 兼容的程序,例如 BMGlyph。
与 ResourceImporterImageFont 相比,ResourceImporterBMFont 能够支持不同字形宽高的位图字体。
教程¶
属性¶
|
||
|
||
|
属性说明¶
bool compress = true
如果为 true
,则会对得到的字体使用无损压缩。
Array fallbacks = []
回退字体列表,在这个位图字体中未找到某个字形时使用。优先尝试靠前的字体。
int scaling_mode = 2
字体缩放模式。