summaryrefslogtreecommitdiffstats
path: root/servers/text_server.cpp
diff options
context:
space:
mode:
authorbruvzg <7645683+bruvzg@users.noreply.github.com>2024-03-11 13:42:16 +0200
committerbruvzg <7645683+bruvzg@users.noreply.github.com>2024-03-11 16:31:10 +0200
commit911fa38d3a0dc71aa99ffcef474b5bae15805e8d (patch)
tree7edc6f08566577326c2a7460ab7545a523a2e5e0 /servers/text_server.cpp
parent810f127022ec2cbfb288e436151d1a777c7b5da7 (diff)
downloadredot-engine-911fa38d3a0dc71aa99ffcef474b5bae15805e8d.tar.gz
[Font] Add option to disable embedded bitmaps loading.
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 d1dadbc839..267e6008c7 100644
--- a/servers/text_server.cpp
+++ b/servers/text_server.cpp
@@ -234,6 +234,9 @@ void TextServer::_bind_methods() {
ClassDB::bind_method(D_METHOD("font_set_antialiasing", "font_rid", "antialiasing"), &TextServer::font_set_antialiasing);
ClassDB::bind_method(D_METHOD("font_get_antialiasing", "font_rid"), &TextServer::font_get_antialiasing);
+ ClassDB::bind_method(D_METHOD("font_set_disable_embedded_bitmaps", "font_rid", "disable_embedded_bitmaps"), &TextServer::font_set_disable_embedded_bitmaps);
+ ClassDB::bind_method(D_METHOD("font_get_disable_embedded_bitmaps", "font_rid"), &TextServer::font_get_disable_embedded_bitmaps);
+
ClassDB::bind_method(D_METHOD("font_set_generate_mipmaps", "font_rid", "generate_mipmaps"), &TextServer::font_set_generate_mipmaps);
ClassDB::bind_method(D_METHOD("font_get_generate_mipmaps", "font_rid"), &TextServer::font_get_generate_mipmaps);