Up to date

This page is up to date for Godot 4.2. If you still find outdated information, please open an issue.

ResourceImporterDynamicFont

Inherits: ResourceImporter < RefCounted < Object

Imports a TTF, TTC, OTF, OTC, WOFF or WOFF2 font file for font rendering that adapts to any size.

Description

Unlike bitmap fonts, dynamic fonts can be resized to any size and still look crisp. Dynamic fonts also optionally support MSDF font rendering, which allows for run-time scale changes with no re-rasterization cost.

While WOFF and especially WOFF2 tend to result in smaller file sizes, there is no universally "better" font format. In most situations, it's recommended to use the font format that was shipped on the font developer's website.

See also ResourceImporterBMFont and ResourceImporterImageFont.

Tutorials

Properties

bool

allow_system_fallback

true

int

antialiasing

1

bool

compress

true

Array

fallbacks

[]

bool

force_autohinter

false

bool

generate_mipmaps

false

int

hinting

1

Dictionary

language_support

{}

int

msdf_pixel_range

8

int

msdf_size

48

bool

multichannel_signed_distance_field