DynamicFontData

Inherits: Resource < Reference < Object

Used with DynamicFont to describe the location of a font file.

Description

Used with DynamicFont to describe the location of a vector font file for dynamic rendering at runtime.

Tutorials

Properties

bool

antialiased

true

String

font_path

""

Hinting

hinting

2

float

override_oversampling

0.0


Enumerations

enum Hinting:

Hinting HINTING_NONE = 0

Disables font hinting (smoother but less crisp).

Hinting HINTING_LIGHT = 1

Use the light font hinting mode.

Hinting HINTING_NORMAL = 2

Use the default font hinting mode (crisper but less smooth).


Property Descriptions

bool antialiased = true

  • void set_antialiased ( bool value )

  • bool is_antialiased ( )

If true, the font is rendered with anti-aliasing. This property applies both to the main font and its outline (if it has one).


String font_path = ""

  • void set_font_path ( String value )

  • String get_font_path ( )

The path to the vector font file.


Hinting hinting = 2

The font hinting mode used by FreeType. See Hinting for options.


float override_oversampling = 0.0

  • void set_override_oversampling ( float value )

  • float get_override_oversampling ( )

If set to a value greater than 0.0, it will override default font oversampling, ignoring SceneTree.use_font_oversampling value and viewport stretch mode.