Merge pull request #54794 from bruvzg/runtime_bmfont_parser

This commit is contained in:
Rémi Verschelde 2022-01-17 13:25:08 +01:00 committed by GitHub
commit a2d323c67e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 787 additions and 739 deletions

View file

@ -306,6 +306,22 @@
Returns [code]true[/code], if font supports given script ([url=https://en.wikipedia.org/wiki/ISO_15924]ISO 15924[/url] code).
</description>
</method>
<method name="load_bitmap_font">
<return type="int" enum="Error" />
<argument index="0" name="path" type="String" />
<description>
Loads an AngelCode BMFont (.fnt, .font) bitmap font from file [code]path[/code].
[b]Warning:[/b] This method should only be used in the editor or in cases when you need to load external fonts at run-time, such as fonts located at the [code]user://[/code] directory.
</description>
</method>
<method name="load_dynamic_font">
<return type="int" enum="Error" />
<argument index="0" name="path" type="String" />
<description>
Loads a TrueType (.ttf), OpenType (.otf), WOFF (.woff) or Type 1 (.pfb, .pfm) dynamic font from file [code]path[/code].
[b]Warning:[/b] This method should only be used in the editor or in cases when you need to load external fonts at run-time, such as fonts located at the [code]user://[/code] directory.
</description>
</method>
<method name="remove_cache">
<return type="void" />
<argument index="0" name="cache_index" type="int" />