From 215bede6ff494bb371fa610b6d003fe1cb7d1c7d Mon Sep 17 00:00:00 2001
From: bruvzg <7645683+bruvzg@users.noreply.github.com>
Date: Thu, 20 Jan 2022 09:30:42 +0200
Subject: [TextServer] Add function to change font, font size, and OpenType
features without invalidating line break points, justification points, or
recreating shaped text buffer.
---
doc/classes/TextLine.xml | 1 +
doc/classes/TextParagraph.xml | 1 +
doc/classes/TextServer.xml | 27 +++++++++++++++++++++++++++
doc/classes/TextServerExtension.xml | 27 +++++++++++++++++++++++++++
4 files changed, 56 insertions(+)
(limited to 'doc/classes')
diff --git a/doc/classes/TextLine.xml b/doc/classes/TextLine.xml
index bf1abf86ae..7bfc7eed7e 100644
--- a/doc/classes/TextLine.xml
+++ b/doc/classes/TextLine.xml
@@ -26,6 +26,7 @@
+
Adds text span and font to draw it.
diff --git a/doc/classes/TextParagraph.xml b/doc/classes/TextParagraph.xml
index 3d3c0dd6ff..acf3dcd43b 100644
--- a/doc/classes/TextParagraph.xml
+++ b/doc/classes/TextParagraph.xml
@@ -26,6 +26,7 @@
+
Adds text span and font to draw it.
diff --git a/doc/classes/TextServer.xml b/doc/classes/TextServer.xml
index 61024ef0c8..9025e4ff2a 100644
--- a/doc/classes/TextServer.xml
+++ b/doc/classes/TextServer.xml
@@ -896,6 +896,32 @@
[b]Note:[/b] This function is used by during project export, to include TextServer database.
+
+
+
+
+ Returns number of text spans added using [method shaped_text_add_string] or [method shaped_text_add_object].
+
+
+
+
+
+
+
+ Returns text span metadata.
+
+
+
+
+
+
+
+
+
+
+ Changes text span font, font size and OpenType features, without changing the text.
+
+
@@ -915,6 +941,7 @@
+
Adds text span and font to draw it to the text buffer.
diff --git a/doc/classes/TextServerExtension.xml b/doc/classes/TextServerExtension.xml
index 8b4825026d..5967340f8c 100644
--- a/doc/classes/TextServerExtension.xml
+++ b/doc/classes/TextServerExtension.xml
@@ -904,6 +904,32 @@
[b]Note:[/b] This function is used by during project export, to include TextServer database.
+
+
+
+
+ Returns number of text spans added using [method _shaped_text_add_string] or [method _shaped_text_add_object].
+
+
+
+
+
+
+
+ Returns text span metadata.
+
+
+
+
+
+
+
+
+
+
+ Changes text span font, font size and OpenType features, without changing the text.
+
+
@@ -923,6 +949,7 @@
+
Adds text span and font to draw it to the text buffer.
--
cgit v1.2.3