class_dynamicfontdata.rst 3.0 KB

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