From bee718f1affca7ccf6ce2dbe3bf69a2cc1882cce Mon Sep 17 00:00:00 2001
From: bruvzg <7645683+bruvzg@users.noreply.github.com>
Date: Sat, 6 Feb 2021 16:34:06 +0200
Subject: [Text Server] Restores bitmap font dynamic construction functions.
---
doc/classes/FontData.xml | 52 +++++++++++++++++++++++++++++++++++++++++
doc/classes/TextServer.xml | 58 ++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 110 insertions(+)
(limited to 'doc/classes')
diff --git a/doc/classes/FontData.xml b/doc/classes/FontData.xml
index e2c35f9ce7..17f4351c23 100644
--- a/doc/classes/FontData.xml
+++ b/doc/classes/FontData.xml
@@ -11,6 +11,45 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 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.
+
+
+
+
+
+
+
+
+
+
+
+
+ Adds a kerning pair to the bitmap font as a difference. Kerning pairs are special cases where a typeface advance is determined by the next character.
+
+
+
+
+
+
+
+
+ Adds a texture to the bitmap font.
+
+
@@ -256,6 +295,19 @@
Note: For non-scalable fonts [code]base_size[/code] is ignored, use [method get_base_size] to check actual font size.
+
+
+
+
+
+
+
+
+
+
+ Creates new, empty bitmap font.
+
+
diff --git a/doc/classes/TextServer.xml b/doc/classes/TextServer.xml
index 791646000b..0dfdec8123 100644
--- a/doc/classes/TextServer.xml
+++ b/doc/classes/TextServer.xml
@@ -9,6 +9,19 @@
+
+
+
+
+
+
+
+
+
+
+ Creates new, empty bitmap font. To free the resulting font, use [method free_rid] method.
+
+
@@ -78,6 +91,51 @@
Draws box displaying character hexadecimal code. Used for replacing missing characters.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 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.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Adds a kerning pair to the bitmap font as a difference. Kerning pairs are special cases where a typeface advance is determined by the next character.
+
+
+
+
+
+
+
+
+
+
+ Adds a texture to the bitmap font.
+
+
--
cgit v1.2.3