class_dynamicfontdata.rst 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  1. :github_url: hide
  2. .. DO NOT EDIT THIS FILE!!!
  3. .. Generated automatically from Godot engine sources.
  4. .. Generator: https://github.com/godotengine/godot/tree/3.6/doc/tools/make_rst.py.
  5. .. XML source: https://github.com/godotengine/godot/tree/3.6/doc/classes/DynamicFontData.xml.
  6. .. _class_DynamicFontData:
  7. DynamicFontData
  8. ===============
  9. **Inherits:** :ref:`Resource<class_Resource>` **<** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
  10. Used with :ref:`DynamicFont<class_DynamicFont>` to describe the location of a font file.
  11. .. rst-class:: classref-introduction-group
  12. Description
  13. -----------
  14. Used with :ref:`DynamicFont<class_DynamicFont>` to describe the location of a vector font file for dynamic rendering at runtime.
  15. .. rst-class:: classref-introduction-group
  16. Tutorials
  17. ---------
  18. - `3D Voxel Demo <https://godotengine.org/asset-library/asset/676>`__
  19. .. rst-class:: classref-reftable-group
  20. Properties
  21. ----------
  22. .. table::
  23. :widths: auto
  24. +----------------------------------------------+------------------------------------------------------------------------------------+----------+
  25. | :ref:`bool<class_bool>` | :ref:`antialiased<class_DynamicFontData_property_antialiased>` | ``true`` |
  26. +----------------------------------------------+------------------------------------------------------------------------------------+----------+
  27. | :ref:`String<class_String>` | :ref:`font_path<class_DynamicFontData_property_font_path>` | ``""`` |
  28. +----------------------------------------------+------------------------------------------------------------------------------------+----------+
  29. | :ref:`Hinting<enum_DynamicFontData_Hinting>` | :ref:`hinting<class_DynamicFontData_property_hinting>` | ``2`` |
  30. +----------------------------------------------+------------------------------------------------------------------------------------+----------+
  31. | :ref:`float<class_float>` | :ref:`override_oversampling<class_DynamicFontData_property_override_oversampling>` | ``0.0`` |
  32. +----------------------------------------------+------------------------------------------------------------------------------------+----------+
  33. .. rst-class:: classref-section-separator
  34. ----
  35. .. rst-class:: classref-descriptions-group
  36. Enumerations
  37. ------------
  38. .. _enum_DynamicFontData_Hinting:
  39. .. rst-class:: classref-enumeration
  40. enum **Hinting**:
  41. .. _class_DynamicFontData_constant_HINTING_NONE:
  42. .. rst-class:: classref-enumeration-constant
  43. :ref:`Hinting<enum_DynamicFontData_Hinting>` **HINTING_NONE** = ``0``
  44. Disables font hinting (smoother but less crisp).
  45. .. _class_DynamicFontData_constant_HINTING_LIGHT:
  46. .. rst-class:: classref-enumeration-constant
  47. :ref:`Hinting<enum_DynamicFontData_Hinting>` **HINTING_LIGHT** = ``1``
  48. Use the light font hinting mode.
  49. .. _class_DynamicFontData_constant_HINTING_NORMAL:
  50. .. rst-class:: classref-enumeration-constant
  51. :ref:`Hinting<enum_DynamicFontData_Hinting>` **HINTING_NORMAL** = ``2``
  52. Use the default font hinting mode (crisper but less smooth).
  53. .. rst-class:: classref-section-separator
  54. ----
  55. .. rst-class:: classref-descriptions-group
  56. Property Descriptions
  57. ---------------------
  58. .. _class_DynamicFontData_property_antialiased:
  59. .. rst-class:: classref-property
  60. :ref:`bool<class_bool>` **antialiased** = ``true``
  61. .. rst-class:: classref-property-setget
  62. - void **set_antialiased** **(** :ref:`bool<class_bool>` value **)**
  63. - :ref:`bool<class_bool>` **is_antialiased** **(** **)**
  64. If ``true``, the font is rendered with anti-aliasing. This property applies both to the main font and its outline (if it has one).
  65. .. rst-class:: classref-item-separator
  66. ----
  67. .. _class_DynamicFontData_property_font_path:
  68. .. rst-class:: classref-property
  69. :ref:`String<class_String>` **font_path** = ``""``
  70. .. rst-class:: classref-property-setget
  71. - void **set_font_path** **(** :ref:`String<class_String>` value **)**
  72. - :ref:`String<class_String>` **get_font_path** **(** **)**
  73. The path to the vector font file.
  74. .. rst-class:: classref-item-separator
  75. ----
  76. .. _class_DynamicFontData_property_hinting:
  77. .. rst-class:: classref-property
  78. :ref:`Hinting<enum_DynamicFontData_Hinting>` **hinting** = ``2``
  79. .. rst-class:: classref-property-setget
  80. - void **set_hinting** **(** :ref:`Hinting<enum_DynamicFontData_Hinting>` value **)**
  81. - :ref:`Hinting<enum_DynamicFontData_Hinting>` **get_hinting** **(** **)**
  82. The font hinting mode used by FreeType. See :ref:`Hinting<enum_DynamicFontData_Hinting>` for options.
  83. .. rst-class:: classref-item-separator
  84. ----
  85. .. _class_DynamicFontData_property_override_oversampling:
  86. .. rst-class:: classref-property
  87. :ref:`float<class_float>` **override_oversampling** = ``0.0``
  88. .. rst-class:: classref-property-setget
  89. - void **set_override_oversampling** **(** :ref:`float<class_float>` value **)**
  90. - :ref:`float<class_float>` **get_override_oversampling** **(** **)**
  91. If set to a value greater than ``0.0``, it will override default font oversampling, ignoring :ref:`SceneTree.use_font_oversampling<class_SceneTree_property_use_font_oversampling>` value and viewport stretch mode.
  92. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  93. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  94. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  95. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`