From 05963674a7a59ae949095173da7278044e58ced8 Mon Sep 17 00:00:00 2001 From: bruvzg <7645683+bruvzg@users.noreply.github.com> Date: Mon, 25 Apr 2022 13:14:30 +0300 Subject: Implement TextMesh resource. Apply simulated slant and embolden to the TextServer `gont_get_glyph_contours` results. --- doc/classes/Label3D.xml | 2 +- doc/classes/TextMesh.xml | 77 ++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 78 insertions(+), 1 deletion(-) create mode 100644 doc/classes/TextMesh.xml (limited to 'doc') diff --git a/doc/classes/Label3D.xml b/doc/classes/Label3D.xml index 1bd52ab2dc..c4d02e6101 100644 --- a/doc/classes/Label3D.xml +++ b/doc/classes/Label3D.xml @@ -78,7 +78,7 @@ Font size of the [Label3D]'s text. - Controls the text's horizontal alignment. Supports left, center, right. Set it to one of the [enum HorizontalAlignment] constants. + Controls the text's horizontal alignment. Supports left, center, right, and fill, or justify. Set it to one of the [enum HorizontalAlignment] constants. Language code used for line-breaking and text shaping algorithms, if left empty current locale is used instead. diff --git a/doc/classes/TextMesh.xml b/doc/classes/TextMesh.xml new file mode 100644 index 0000000000..5a1501d2ca --- /dev/null +++ b/doc/classes/TextMesh.xml @@ -0,0 +1,77 @@ + + + + Generate an [PrimitiveMesh] from the text. + + + Generate an [PrimitiveMesh] from the text. + TextMesh can be generated only when using dynamic fonts with vector glyph contours. Bitmap fonts (including bitmap data in the TrueType/OpenType containers, like color emoji fonts) are not supported. + The UV layout is arranged in 4 horizontal strips, top to bottom: 40% of the height for the front face, 40% for the back face, 10% for the outer edges and 10% for the inner edges. + + + + + + + + Removes all OpenType features. + + + + + + + Returns OpenType feature [code]tag[/code]. + + + + + + + + Returns OpenType feature [code]tag[/code]. More info: [url=https://docs.microsoft.com/en-us/typography/opentype/spec/featuretags]OpenType feature tags[/url]. + + + + + + Step (in pixels) used to approximate Bézier curves. + + + Depths of the mesh, if set to [code]0.0[/code] only front surface, is generated, and UV layout is changed to use full texture for the front face only. + + + [Font] used for the [TextMesh]'s text. + + + Font size of the [TextMesh]'s text. + + + Controls the text's horizontal alignment. Supports left, center, right, and fill, or justify. Set it to one of the [enum HorizontalAlignment] constants. + + + Language code used for text shaping algorithms, if left empty current locale is used instead. + + + The size of one pixel's width on the text to scale it in 3D. + + + Set BiDi algorithm override for the structured text. + + + Set additional options for BiDi override. + + + The text to generate mesh from. + + + Base text writing direction. + + + If [code]true[/code], all the text displays as UPPERCASE. + + + Text width (in pixels), used for fill alignment. + + + -- cgit v1.2.3