From 3f33e1d7d6d07620487758c7a850ec40ce3aafdf Mon Sep 17 00:00:00 2001 From: bruvzg <7645683+bruvzg@users.noreply.github.com> Date: Tue, 26 Oct 2021 09:40:11 +0300 Subject: Add functions for getting name and font style from dynamic and bitmap fonts. Add font selection toolbar editor plugin. --- doc/classes/FontData.xml | 39 +++++++++++++++++++++++++++ doc/classes/LineEdit.xml | 3 +++ doc/classes/TextServer.xml | 54 +++++++++++++++++++++++++++++++++++++ doc/classes/TextServerExtension.xml | 45 +++++++++++++++++++++++++++++++ 4 files changed, 141 insertions(+) (limited to 'doc/classes') diff --git a/doc/classes/FontData.xml b/doc/classes/FontData.xml index 04932ddd2d..ccfe861c92 100644 --- a/doc/classes/FontData.xml +++ b/doc/classes/FontData.xml @@ -93,6 +93,24 @@ Returns font descent (number of pixels below the baseline). + + + + Returns font family name. + + + + + + Returns font style flags, see [enum TextServer.FontStyle]. + + + + + + Returns font style name. + + @@ -463,6 +481,27 @@ Sets the font descent (number of pixels below the baseline). + + + + + Sets the font family name. + + + + + + + Sets the font style flags, see [enum TextServer.FontStyle]. + + + + + + + Sets the font style name. + + diff --git a/doc/classes/LineEdit.xml b/doc/classes/LineEdit.xml index f79ba5a16f..a75bd2f704 100644 --- a/doc/classes/LineEdit.xml +++ b/doc/classes/LineEdit.xml @@ -196,6 +196,9 @@ If [code]true[/code], the [LineEdit] width will increase to stay longer than the [member text]. It will [b]not[/b] compress if the [member text] is shortened. + + If [code]true[/code], the [LineEdit] don't display decoration. + Language code used for line-breaking and text shaping algorithms, if left empty current locale is used instead. diff --git a/doc/classes/TextServer.xml b/doc/classes/TextServer.xml index 3e32afe370..10011119c0 100644 --- a/doc/classes/TextServer.xml +++ b/doc/classes/TextServer.xml @@ -254,6 +254,13 @@ Returns source font size used to generate MSDF textures. + + + + + Returns font family name. + + @@ -300,6 +307,20 @@ Returns extra spacing added between glyphs in pixels. + + + + + Returns font style flags, see [enum FontStyle]. + + + + + + + Returns font style name. + + @@ -634,6 +655,14 @@ [b]Note:[/b] MSDF font rendering does not render glyphs with overlapping shapes correctly. Overlapping shapes are not valid per the OpenType standard, but are still commonly found in many font files, especially those converted by Google Fonts. To avoid issues with overlapping glyphs, consider downloading the font file directly from the type foundry instead of relying on Google Fonts. + + + + + + Sets the font family name. + + @@ -670,6 +699,22 @@ Sets extra spacing added between glyphs in pixels. + + + + + + Sets the font style flags, see [enum FontStyle]. + + + + + + + + Set the font style name. + + @@ -1402,5 +1447,14 @@ Spacing at the bottom of the line. + + Font is bold. + + + Font is italic or oblique. + + + Font have fixed-width characters. + diff --git a/doc/classes/TextServerExtension.xml b/doc/classes/TextServerExtension.xml index 99382d5463..cf7d4d0f52 100644 --- a/doc/classes/TextServerExtension.xml +++ b/doc/classes/TextServerExtension.xml @@ -254,6 +254,13 @@ Returns source font size used to generate MSDF textures. + + + + + Returns font family name. + + @@ -300,6 +307,20 @@ Returns extra spacing added between glyphs in pixels. + + + + + Returns font style flags, see [enum TextServer.FontStyle]. + + + + + + + Returns font style name. + + @@ -641,6 +662,14 @@ If set to [code]true[/code], glyphs of all sizes are rendered using single multichannel signed distance field generated from the dynamic font vector data. + + + + + + Sets the font family name. + + @@ -677,6 +706,22 @@ Sets extra spacing added between glyphs in pixels. + + + + + + Sets the font style flags, see [enum TextServer.FontStyle]. + + + + + + + + Sets the font style name. + + -- cgit v1.2.3