class_dynamicfontdata.rst 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. :github_url: hide
  2. .. Generated automatically by doc/tools/make_rst.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. Tutorials
  14. ---------
  15. - `3D Voxel Demo <https://godotengine.org/asset-library/asset/676>`__
  16. Properties
  17. ----------
  18. +----------------------------------------------+----------------------------------------------------------------+----------+
  19. | :ref:`bool<class_bool>` | :ref:`antialiased<class_DynamicFontData_property_antialiased>` | ``true`` |
  20. +----------------------------------------------+----------------------------------------------------------------+----------+
  21. | :ref:`String<class_String>` | :ref:`font_path<class_DynamicFontData_property_font_path>` | ``""`` |
  22. +----------------------------------------------+----------------------------------------------------------------+----------+
  23. | :ref:`Hinting<enum_DynamicFontData_Hinting>` | :ref:`hinting<class_DynamicFontData_property_hinting>` | ``2`` |
  24. +----------------------------------------------+----------------------------------------------------------------+----------+
  25. Enumerations
  26. ------------
  27. .. _enum_DynamicFontData_Hinting:
  28. .. _class_DynamicFontData_constant_HINTING_NONE:
  29. .. _class_DynamicFontData_constant_HINTING_LIGHT:
  30. .. _class_DynamicFontData_constant_HINTING_NORMAL:
  31. enum **Hinting**:
  32. - **HINTING_NONE** = **0** --- Disables font hinting (smoother but less crisp).
  33. - **HINTING_LIGHT** = **1** --- Use the light font hinting mode.
  34. - **HINTING_NORMAL** = **2** --- Use the default font hinting mode (crisper but less smooth).
  35. Property Descriptions
  36. ---------------------
  37. .. _class_DynamicFontData_property_antialiased:
  38. - :ref:`bool<class_bool>` **antialiased**
  39. +-----------+------------------------+
  40. | *Default* | ``true`` |
  41. +-----------+------------------------+
  42. | *Setter* | set_antialiased(value) |
  43. +-----------+------------------------+
  44. | *Getter* | is_antialiased() |
  45. +-----------+------------------------+
  46. If ``true``, the font is rendered with anti-aliasing. This property applies both to the main font and its outline (if it has one).
  47. ----
  48. .. _class_DynamicFontData_property_font_path:
  49. - :ref:`String<class_String>` **font_path**
  50. +-----------+----------------------+
  51. | *Default* | ``""`` |
  52. +-----------+----------------------+
  53. | *Setter* | set_font_path(value) |
  54. +-----------+----------------------+
  55. | *Getter* | get_font_path() |
  56. +-----------+----------------------+
  57. The path to the vector font file.
  58. ----
  59. .. _class_DynamicFontData_property_hinting:
  60. - :ref:`Hinting<enum_DynamicFontData_Hinting>` **hinting**
  61. +-----------+--------------------+
  62. | *Default* | ``2`` |
  63. +-----------+--------------------+
  64. | *Setter* | set_hinting(value) |
  65. +-----------+--------------------+
  66. | *Getter* | get_hinting() |
  67. +-----------+--------------------+
  68. The font hinting mode used by FreeType. See :ref:`Hinting<enum_DynamicFontData_Hinting>` for options.
  69. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  70. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  71. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`