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

boolantialiasedtrue
Stringfont_path“”
Hintinghinting2

Enumerations

enum Hinting:

  • HINTING_NONE = 0 —- Disables font hinting (smoother but less crisp).
  • HINTING_LIGHT = 1 —- Use the light font hinting mode.
  • HINTING_NORMAL = 2 —- Use the default font hinting mode (crisper but less smooth).

Property Descriptions

Defaulttrue
Setterset_antialiased(value)
Getteris_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).


Default“”
Setterset_font_path(value)
Getterget_font_path()

The path to the vector font file.


Default2
Setterset_hinting(value)
Getterget_hinting()

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