class_dynamicfontdata.rst 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  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>` | 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. 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. | *Default* | true |
  41. +-----------+------------------------+
  42. | *Setter* | set_antialiased(value) |
  43. +-----------+------------------------+
  44. | *Getter* | is_antialiased() |
  45. +-----------+------------------------+
  46. Controls whether the font should be rendered with anti-aliasing.
  47. .. _class_DynamicFontData_property_font_path:
  48. - :ref:`String<class_String>` **font_path**
  49. +-----------+----------------------+
  50. | *Default* | "" |
  51. +-----------+----------------------+
  52. | *Setter* | set_font_path(value) |
  53. +-----------+----------------------+
  54. | *Getter* | get_font_path() |
  55. +-----------+----------------------+
  56. The path to the vector font file.
  57. .. _class_DynamicFontData_property_hinting:
  58. - :ref:`Hinting<enum_DynamicFontData_Hinting>` **hinting**
  59. +-----------+--------------------+
  60. | *Default* | 2 |
  61. +-----------+--------------------+
  62. | *Setter* | set_hinting(value) |
  63. +-----------+--------------------+
  64. | *Getter* | get_hinting() |
  65. +-----------+--------------------+
  66. The font hinting mode used by FreeType.