From c1d261fdb09db3aae4c7fa6587812a697f2ea8cd Mon Sep 17 00:00:00 2001 From: bruvzg <7645683+bruvzg@users.noreply.github.com> Date: Thu, 22 Oct 2020 19:40:18 +0300 Subject: [Complex Text Layouts] Add variable fonts support. --- doc/classes/TextServer.xml | 39 ++++++++++++++++++++++++++++++++++++++- 1 file changed, 38 insertions(+), 1 deletion(-) (limited to 'doc/classes/TextServer.xml') diff --git a/doc/classes/TextServer.xml b/doc/classes/TextServer.xml index 9c34c63e2f..31ea108e46 100644 --- a/doc/classes/TextServer.xml +++ b/doc/classes/TextServer.xml @@ -326,6 +326,27 @@ Returns underline thickness in pixels. + + + + + + + + + Returns variation coordinate [code]tag[/code]. + + + + + + + + + Returns list of supported [url=https://docs.microsoft.com/en-us/typography/opentype/spec/dvaraxisreg]variation coordinates[/url], each coordinate is returned as [code]tag: Vector3i(min_value,max_value,default_value)[/code]. + Font variations allow for continuous change of glyph characteristics along some given design axis, such as weight, width or slant. + + @@ -469,6 +490,19 @@ Adds override for [method font_is_script_supported]. + + + + + + + + + + + Sets variation coordinate [code]name[/code]. Unsupported coordinates will be silently ignored. + + @@ -1160,7 +1194,10 @@ TextServer supports loading system fonts. - + + TextServer supports variable fonts. + + TextServer require external data file for some features. -- cgit v1.2.3