github_url: | hide |
---|
Inherits: :ref:`Resource<class_Resource>` < :ref:`Reference<class_Reference>` < :ref:`Object<class_Object>`
Used with :ref:`DynamicFont<class_DynamicFont>` to describe the location of a font file.
Used with :ref:`DynamicFont<class_DynamicFont>` to describe the location of a vector font file for dynamic rendering at runtime.
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).
- :ref:`bool<class_bool>` antialiased
Default | true |
Setter | set_antialiased(value) |
Getter | is_antialiased() |
If true
, the font is rendered with anti-aliasing.
- :ref:`String<class_String>` font_path
Default | "" |
Setter | set_font_path(value) |
Getter | get_font_path() |
The path to the vector font file.
Default | 2 |
Setter | set_hinting(value) |
Getter | get_hinting() |
The font hinting mode used by FreeType. See :ref:`Hinting<enum_DynamicFontData_Hinting>` for options.