DynamicFontData.xml 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="DynamicFontData" inherits="Resource" category="Core" version="3.1">
  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. <demos>
  12. </demos>
  13. <methods>
  14. </methods>
  15. <members>
  16. <member name="antialiased" type="bool" setter="set_antialiased" getter="is_antialiased">
  17. Controls whether the font should be rendered with anti-aliasing.
  18. </member>
  19. <member name="font_path" type="String" setter="set_font_path" getter="get_font_path">
  20. The path to the vector font file.
  21. </member>
  22. <member name="hinting" type="int" setter="set_hinting" getter="get_hinting" enum="DynamicFontData.Hinting">
  23. The font hinting mode used by FreeType.
  24. </member>
  25. </members>
  26. <constants>
  27. <constant name="HINTING_NONE" value="0" enum="Hinting">
  28. Disable font hinting (smoother but less crisp).
  29. </constant>
  30. <constant name="HINTING_LIGHT" value="1" enum="Hinting">
  31. Use the light font hinting mode.
  32. </constant>
  33. <constant name="HINTING_NORMAL" value="2" enum="Hinting">
  34. Use the default font hinting mode (crisper but less smooth).
  35. </constant>
  36. </constants>
  37. </class>