class_dynamicfontdata.rst 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  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. Used with :ref:`DynamicFont<class_DynamicFont>` to describe the location of a font file.
  10. Description
  11. -----------
  12. Used with :ref:`DynamicFont<class_DynamicFont>` to describe the location of a vector font file for dynamic rendering at runtime.
  13. Properties
  14. ----------
  15. +----------------------------------------------+----------------------------------------------------------------+----------+
  16. | :ref:`bool<class_bool>` | :ref:`antialiased<class_DynamicFontData_property_antialiased>` | ``true`` |
  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>` | ``2`` |
  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** --- Disables 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. Property Descriptions
  33. ---------------------
  34. .. _class_DynamicFontData_property_antialiased:
  35. - :ref:`bool<class_bool>` **antialiased**
  36. +-----------+------------------------+
  37. | *Default* | ``true`` |
  38. +-----------+------------------------+
  39. | *Setter* | set_antialiased(value) |
  40. +-----------+------------------------+
  41. | *Getter* | is_antialiased() |
  42. +-----------+------------------------+
  43. If ``true``, the font is rendered with anti-aliasing. This property applies both to the main font and its outline (if it has one).
  44. ----
  45. .. _class_DynamicFontData_property_font_path:
  46. - :ref:`String<class_String>` **font_path**
  47. +-----------+----------------------+
  48. | *Default* | ``""`` |
  49. +-----------+----------------------+
  50. | *Setter* | set_font_path(value) |
  51. +-----------+----------------------+
  52. | *Getter* | get_font_path() |
  53. +-----------+----------------------+
  54. The path to the vector font file.
  55. ----
  56. .. _class_DynamicFontData_property_hinting:
  57. - :ref:`Hinting<enum_DynamicFontData_Hinting>` **hinting**
  58. +-----------+--------------------+
  59. | *Default* | ``2`` |
  60. +-----------+--------------------+
  61. | *Setter* | set_hinting(value) |
  62. +-----------+--------------------+
  63. | *Getter* | get_hinting() |
  64. +-----------+--------------------+
  65. The font hinting mode used by FreeType. See :ref:`Hinting<enum_DynamicFontData_Hinting>` for options.
  66. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  67. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  68. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`