From f43e49b1c0c5328bd1914681c7294d2bb8e67d54 Mon Sep 17 00:00:00 2001 From: Dio <32492386+diowonderland@users.noreply.github.com> Date: Wed, 11 Oct 2017 00:08:59 +0200 Subject: [DOCS] DynamicFont --- doc/classes/DynamicFont.xml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/doc/classes/DynamicFont.xml b/doc/classes/DynamicFont.xml index e4ce2ff3f0..c130add523 100644 --- a/doc/classes/DynamicFont.xml +++ b/doc/classes/DynamicFont.xml @@ -1,8 +1,10 @@ + DynamicFont renders vector font files at runtime. + DynamicFont renders vector font files (such as TTF or OTF) dynamically at runtime instead of using a prerendered texture atlas like [BitmapFont]. This trades the faster loading time of [BitmapFont]\ s for the ability to change font parameters like size and spacing during runtime. [DynamicFontData] is used for referencing the font file paths. @@ -15,6 +17,7 @@ + Adds a fallback font. @@ -23,12 +26,14 @@ + Returns the fallback font at index [code]idx[/code]. + Returns the number of fallback fonts. @@ -41,6 +46,7 @@ + Returns the font size in pixels. @@ -49,18 +55,21 @@ + Returns the given type of spacing in pixels. See [code]SPACING_*[/code] constants. + Returns [code]true[/code] if filtering is used. + Returns [code]true[/code] if mipmapping is used. @@ -69,6 +78,7 @@ + Removes the fallback font at index [code]idx[/code]. @@ -79,6 +89,7 @@ + Sets the fallback font at index [code]idx[/code]. @@ -87,6 +98,7 @@ + Sets the [DynamicFontData]. @@ -95,6 +107,7 @@ + Sets the font size. @@ -105,6 +118,7 @@ + Sets the spacing of the given type. See [code]SPACING_*[/code] constants. @@ -113,6 +127,7 @@ + Set to [code]true[/code] to use filtering. @@ -121,35 +136,48 @@ + Set to [code]true[/code] to use mipmapping. + Extra spacing at the bottom in pixels. + Extra character spacing in pixels. + Extra space spacing in pixels. + Extra spacing at the top in pixels. + The font data. + The font size. + If [code]true[/code] filtering is used. + If [code]true[/code] mipmapping is used. + Spacing at the top. + Spacing at the bottom. + Character spacing. + Space spacing. -- cgit v1.2.3