From 5ec3da0a8b6734b2af58915559a216ff8d63c5af Mon Sep 17 00:00:00 2001 From: Dio <32492386+diowonderland@users.noreply.github.com> Date: Tue, 10 Oct 2017 23:50:49 +0200 Subject: [PATCH] [DOCS] BitmapFont --- doc/classes/BitmapFont.xml | 31 +++++++++++++++++++++++-------- 1 file changed, 23 insertions(+), 8 deletions(-) diff --git a/doc/classes/BitmapFont.xml b/doc/classes/BitmapFont.xml index e983c59782e..07027c4b429 100644 --- a/doc/classes/BitmapFont.xml +++ b/doc/classes/BitmapFont.xml @@ -1,8 +1,10 @@ + Renders text using [code]*.fnt[/code] fonts. + Renders text using [code]*.fnt[/code] fonts containing texture atlases. Supports distance fields. For using vector font files like TTF directly, see [DynamicFont]. @@ -23,7 +25,7 @@ - Add a character to the font, where [i]character[/i] is the unicode value, [i]texture[/i] is the texture index, [i]rect[/i] is the region in the texture (in pixels!), [i]align[/i] is the (optional) alignment for the character and [i]advance[/i] is the (optional) advance. + Adds a character to the font, where [code]character[/code] is the unicode value, [code]texture[/code] is the texture index, [code]rect[/code] is the region in the texture (in pixels!), [code]align[/code] is the (optional) alignment for the character and [code]advance[/code] is the (optional) advance. @@ -36,7 +38,7 @@ - Add a kerning pair to the [BitmapFont] as a difference. Kerning pairs are special cases where a typeface advance is determined by the next character. + Adds a kerning pair to the [BitmapFont] as a difference. Kerning pairs are special cases where a typeface advance is determined by the next character. @@ -45,14 +47,14 @@ - Add a texture to the [BitmapFont]. + Adds a texture to the [BitmapFont]. - Clear all the font data. + Clears all the font data and settings. @@ -61,6 +63,7 @@ + Creates a BitmapFont from the [code]*.fnt[/code] file at [code]path[/code]. @@ -71,13 +74,14 @@ - Return the size of a character, optionally taking kerning into account if the next character is provided. + Returns the size of a character, optionally taking kerning into account if the next character is provided. + Returns the fallback BitmapFont. @@ -88,7 +92,7 @@ - Return a kerning pair as a difference. + Returns a kerning pair as a difference. @@ -97,12 +101,14 @@ + Returns the font atlas texture at index [code]idx[/code]. + Returns the number of textures in the BitmapFont atlas. @@ -111,7 +117,7 @@ - Set the font ascent (number of pixels above the baseline). + Sets the font ascent (number of pixels above the baseline). @@ -120,6 +126,7 @@ + If [code]true[/code] distance field hint is enabled. @@ -128,6 +135,7 @@ + Sets the fallback BitmapFont. @@ -136,24 +144,31 @@ - Set the total font height (ascent plus descent) in pixels. + Sets the total font height (ascent plus descent) in pixels. + Ascent (number of pixels above the baseline). + The characters in the BitmapFont. + If [code]true[/code] distance field hint is enabled. + The fallback font. + Total font height (ascent plus descent) in pixels. + The font's kernings as [PoolIntArray]. + The font's [Texture]\ s.