DynamicFontData.xml 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="DynamicFontData" inherits="Resource" version="3.6" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd">
  3. <brief_description>
  4. Used with [DynamicFont] to describe the location of a font file.
  5. </brief_description>
  6. <description>
  7. Used with [DynamicFont] to describe the location of a vector font file for dynamic rendering at runtime.
  8. </description>
  9. <tutorials>
  10. <link title="3D Voxel Demo">https://godotengine.org/asset-library/asset/676</link>
  11. </tutorials>
  12. <methods>
  13. </methods>
  14. <members>
  15. <member name="antialiased" type="bool" setter="set_antialiased" getter="is_antialiased" default="true">
  16. If [code]true[/code], the font is rendered with anti-aliasing. This property applies both to the main font and its outline (if it has one).
  17. </member>
  18. <member name="font_path" type="String" setter="set_font_path" getter="get_font_path" default="&quot;&quot;">
  19. The path to the vector font file.
  20. </member>
  21. <member name="hinting" type="int" setter="set_hinting" getter="get_hinting" enum="DynamicFontData.Hinting" default="2">
  22. The font hinting mode used by FreeType. See [enum Hinting] for options.
  23. </member>
  24. <member name="override_oversampling" type="float" setter="set_override_oversampling" getter="get_override_oversampling" default="0.0">
  25. If set to a value greater than [code]0.0[/code], it will override default font oversampling, ignoring [member SceneTree.use_font_oversampling] value and viewport stretch mode.
  26. </member>
  27. </members>
  28. <constants>
  29. <constant name="HINTING_NONE" value="0" enum="Hinting">
  30. Disables font hinting (smoother but less crisp).
  31. </constant>
  32. <constant name="HINTING_LIGHT" value="1" enum="Hinting">
  33. Use the light font hinting mode.
  34. </constant>
  35. <constant name="HINTING_NORMAL" value="2" enum="Hinting">
  36. Use the default font hinting mode (crisper but less smooth).
  37. </constant>
  38. </constants>
  39. </class>