summaryrefslogtreecommitdiffstats
path: root/servers/text_server.cpp
diff options
context:
space:
mode:
authorbruvzg <7645683+bruvzg@users.noreply.github.com>2023-08-24 11:56:50 +0300
committerbruvzg <7645683+bruvzg@users.noreply.github.com>2023-08-24 11:58:12 +0300
commit545350369774ffb56d207f22102c0b9c58035192 (patch)
tree0ede2d8d4c17d8ec652ae95fc585f5f9495a18ca /servers/text_server.cpp
parent6758a7f8c07d1f4c8ec4f052ded6d26402967ebe (diff)
downloadredot-engine-545350369774ffb56d207f22102c0b9c58035192.tar.gz
[Text Server] Store extra spacing of individual font variations.
Diffstat (limited to 'servers/text_server.cpp')
-rw-r--r--servers/text_server.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/servers/text_server.cpp b/servers/text_server.cpp
index 28c6b20f7b..3c901f573e 100644
--- a/servers/text_server.cpp
+++ b/servers/text_server.cpp
@@ -263,6 +263,9 @@ void TextServer::_bind_methods() {
ClassDB::bind_method(D_METHOD("font_set_embolden", "font_rid", "strength"), &TextServer::font_set_embolden);
ClassDB::bind_method(D_METHOD("font_get_embolden", "font_rid"), &TextServer::font_get_embolden);
+ ClassDB::bind_method(D_METHOD("font_set_spacing", "font_rid", "spacing", "value"), &TextServer::font_set_spacing);
+ ClassDB::bind_method(D_METHOD("font_get_spacing", "font_rid", "spacing"), &TextServer::font_get_spacing);
+
ClassDB::bind_method(D_METHOD("font_set_transform", "font_rid", "transform"), &TextServer::font_set_transform);
ClassDB::bind_method(D_METHOD("font_get_transform", "font_rid"), &TextServer::font_get_transform);