class_resourceimporterbmfont.rst 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. :github_url: hide
  2. .. DO NOT EDIT THIS FILE!!!
  3. .. Generated automatically from Godot engine sources.
  4. .. Generator: https://github.com/godotengine/godot/tree/master/doc/tools/make_rst.py.
  5. .. XML source: https://github.com/godotengine/godot/tree/master/doc/classes/ResourceImporterBMFont.xml.
  6. .. _class_ResourceImporterBMFont:
  7. ResourceImporterBMFont
  8. ======================
  9. **Inherits:** :ref:`ResourceImporter<class_ResourceImporter>` **<** :ref:`RefCounted<class_RefCounted>` **<** :ref:`Object<class_Object>`
  10. Imports a bitmap font in the BMFont (``.fnt``) format.
  11. .. rst-class:: classref-introduction-group
  12. Description
  13. -----------
  14. The BMFont format is a format created by the `BMFont <https://www.angelcode.com/products/bmfont/>`__ program. Many BMFont-compatible programs also exist, like `BMGlyph <https://www.bmglyph.com/>`__.
  15. Compared to :ref:`ResourceImporterImageFont<class_ResourceImporterImageFont>`, **ResourceImporterBMFont** supports bitmap fonts with varying glyph widths/heights.
  16. See also :ref:`ResourceImporterDynamicFont<class_ResourceImporterDynamicFont>`.
  17. .. rst-class:: classref-introduction-group
  18. Tutorials
  19. ---------
  20. - `Bitmap fonts - Using fonts <../tutorials/ui/gui_using_fonts.html#bitmap-fonts>`__
  21. .. rst-class:: classref-reftable-group
  22. Properties
  23. ----------
  24. .. table::
  25. :widths: auto
  26. +---------------------------+-------------------------------------------------------------------------+----------+
  27. | :ref:`bool<class_bool>` | :ref:`compress<class_ResourceImporterBMFont_property_compress>` | ``true`` |
  28. +---------------------------+-------------------------------------------------------------------------+----------+
  29. | :ref:`Array<class_Array>` | :ref:`fallbacks<class_ResourceImporterBMFont_property_fallbacks>` | ``[]`` |
  30. +---------------------------+-------------------------------------------------------------------------+----------+
  31. | :ref:`int<class_int>` | :ref:`scaling_mode<class_ResourceImporterBMFont_property_scaling_mode>` | ``2`` |
  32. +---------------------------+-------------------------------------------------------------------------+----------+
  33. .. rst-class:: classref-section-separator
  34. ----
  35. .. rst-class:: classref-descriptions-group
  36. Property Descriptions
  37. ---------------------
  38. .. _class_ResourceImporterBMFont_property_compress:
  39. .. rst-class:: classref-property
  40. :ref:`bool<class_bool>` **compress** = ``true`` :ref:`🔗<class_ResourceImporterBMFont_property_compress>`
  41. If ``true``, uses lossless compression for the resulting font.
  42. .. rst-class:: classref-item-separator
  43. ----
  44. .. _class_ResourceImporterBMFont_property_fallbacks:
  45. .. rst-class:: classref-property
  46. :ref:`Array<class_Array>` **fallbacks** = ``[]`` :ref:`🔗<class_ResourceImporterBMFont_property_fallbacks>`
  47. List of font fallbacks to use if a glyph isn't found in this bitmap font. Fonts at the beginning of the array are attempted first.
  48. .. rst-class:: classref-item-separator
  49. ----
  50. .. _class_ResourceImporterBMFont_property_scaling_mode:
  51. .. rst-class:: classref-property
  52. :ref:`int<class_int>` **scaling_mode** = ``2`` :ref:`🔗<class_ResourceImporterBMFont_property_scaling_mode>`
  53. Font scaling mode.
  54. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  55. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  56. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  57. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  58. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  59. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`
  60. .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`
  61. .. |void| replace:: :abbr:`void (No return value.)`