class_dynamicfontdata.rst 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  2. .. DO NOT EDIT THIS FILE, but the DynamicFontData.xml source instead.
  3. .. The source is found in doc/classes or modules/<name>/doc_classes.
  4. .. _class_DynamicFontData:
  5. DynamicFontData
  6. ===============
  7. **Inherits:** :ref:`Resource<class_Resource>` **<** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
  8. **Category:** Core
  9. Brief Description
  10. -----------------
  11. Used with :ref:`DynamicFont<class_DynamicFont>` to describe the location of a font file.
  12. Properties
  13. ----------
  14. +----------------------------------------------+----------------------------------------------------------------+
  15. | :ref:`bool<class_bool>` | :ref:`antialiased<class_DynamicFontData_property_antialiased>` |
  16. +----------------------------------------------+----------------------------------------------------------------+
  17. | :ref:`String<class_String>` | :ref:`font_path<class_DynamicFontData_property_font_path>` |
  18. +----------------------------------------------+----------------------------------------------------------------+
  19. | :ref:`Hinting<enum_DynamicFontData_Hinting>` | :ref:`hinting<class_DynamicFontData_property_hinting>` |
  20. +----------------------------------------------+----------------------------------------------------------------+
  21. Enumerations
  22. ------------
  23. .. _enum_DynamicFontData_Hinting:
  24. .. _class_DynamicFontData_constant_HINTING_NONE:
  25. .. _class_DynamicFontData_constant_HINTING_LIGHT:
  26. .. _class_DynamicFontData_constant_HINTING_NORMAL:
  27. enum **Hinting**:
  28. - **HINTING_NONE** = **0** --- Disable font hinting (smoother but less crisp).
  29. - **HINTING_LIGHT** = **1** --- Use the light font hinting mode.
  30. - **HINTING_NORMAL** = **2** --- Use the default font hinting mode (crisper but less smooth).
  31. Description
  32. -----------
  33. Used with :ref:`DynamicFont<class_DynamicFont>` to describe the location of a vector font file for dynamic rendering at runtime.
  34. Property Descriptions
  35. ---------------------
  36. .. _class_DynamicFontData_property_antialiased:
  37. - :ref:`bool<class_bool>` **antialiased**
  38. +----------+------------------------+
  39. | *Setter* | set_antialiased(value) |
  40. +----------+------------------------+
  41. | *Getter* | is_antialiased() |
  42. +----------+------------------------+
  43. Controls whether the font should be rendered with anti-aliasing.
  44. .. _class_DynamicFontData_property_font_path:
  45. - :ref:`String<class_String>` **font_path**
  46. +----------+----------------------+
  47. | *Setter* | set_font_path(value) |
  48. +----------+----------------------+
  49. | *Getter* | get_font_path() |
  50. +----------+----------------------+
  51. The path to the vector font file.
  52. .. _class_DynamicFontData_property_hinting:
  53. - :ref:`Hinting<enum_DynamicFontData_Hinting>` **hinting**
  54. +----------+--------------------+
  55. | *Setter* | set_hinting(value) |
  56. +----------+--------------------+
  57. | *Getter* | get_hinting() |
  58. +----------+--------------------+
  59. The font hinting mode used by FreeType.