DynamicFontData.xml 1.4 KB

1234567891011121314151617181920212223242526272829303132333435
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="DynamicFontData" inherits="Resource" version="3.2">
  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. </tutorials>
  11. <methods>
  12. </methods>
  13. <members>
  14. <member name="antialiased" type="bool" setter="set_antialiased" getter="is_antialiased" default="true">
  15. 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).
  16. </member>
  17. <member name="font_path" type="String" setter="set_font_path" getter="get_font_path" default="&quot;&quot;">
  18. The path to the vector font file.
  19. </member>
  20. <member name="hinting" type="int" setter="set_hinting" getter="get_hinting" enum="DynamicFontData.Hinting" default="2">
  21. The font hinting mode used by FreeType. See [enum Hinting] for options.
  22. </member>
  23. </members>
  24. <constants>
  25. <constant name="HINTING_NONE" value="0" enum="Hinting">
  26. Disables font hinting (smoother but less crisp).
  27. </constant>
  28. <constant name="HINTING_LIGHT" value="1" enum="Hinting">
  29. Use the light font hinting mode.
  30. </constant>
  31. <constant name="HINTING_NORMAL" value="2" enum="Hinting">
  32. Use the default font hinting mode (crisper but less smooth).
  33. </constant>
  34. </constants>
  35. </class>