Outdated documentation

This documentation page refers to Godot 4.3, and may be outdated or incorrect.
Additionally, this engine version is no longer supported.

Check this page in the stable branch for the latest additions and corrections.

ResourceImporterBMFont

Inherits: ResourceImporter < RefCounted < Object

Imports a bitmap font in the BMFont (.fnt) format.

Description

The BMFont format is a format created by the BMFont program. Many BMFont-compatible programs also exist, like BMGlyph.

Compared to ResourceImporterImageFont, ResourceImporterBMFont supports bitmap fonts with varying glyph widths/heights.

See also ResourceImporterDynamicFont.

Tutorials

Properties

bool

compress

true

Array

fallbacks

[]

int

scaling_mode

2


Property Descriptions

bool compress = true 🔗

If true, uses lossless compression for the resulting font.


Array fallbacks = [] 🔗

List of font fallbacks to use if a glyph isn't found in this bitmap font. Fonts at the beginning of the array are attempted first.


int scaling_mode = 2 🔗

Font scaling mode.


User-contributed notes

Please read the User-contributed notes policy before submitting a comment.