diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2021-02-24 12:55:36 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-24 12:55:36 +0100 |
commit | a527c6856bbc59698793ae67aa6f034b31231a8c (patch) | |
tree | 28bacef7857161b51ba598010c0391ba9d765e42 /servers/text_server.cpp | |
parent | 19bfbcfec29b8791711e7f99bcc4ba28e932d3f2 (diff) | |
parent | bee718f1affca7ccf6ce2dbe3bf69a2cc1882cce (diff) | |
download | redot-engine-a527c6856bbc59698793ae67aa6f034b31231a8c.tar.gz |
Merge pull request #46045 from bruvzg/text_server_bmp_create
[TextServer] Restores bitmap font dynamic construction functions.
Diffstat (limited to 'servers/text_server.cpp')
-rw-r--r-- | servers/text_server.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/servers/text_server.cpp b/servers/text_server.cpp index 27fdd090f1..d6d3c11cfb 100644 --- a/servers/text_server.cpp +++ b/servers/text_server.cpp @@ -219,6 +219,11 @@ void TextServer::_bind_methods() { ClassDB::bind_method(D_METHOD("create_font_system", "name", "base_size"), &TextServer::create_font_system, DEFVAL(16)); ClassDB::bind_method(D_METHOD("create_font_resource", "filename", "base_size"), &TextServer::create_font_resource, DEFVAL(16)); ClassDB::bind_method(D_METHOD("create_font_memory", "data", "type", "base_size"), &TextServer::_create_font_memory, DEFVAL(16)); + ClassDB::bind_method(D_METHOD("create_font_bitmap", "height", "ascent", "base_size"), &TextServer::create_font_bitmap); + + ClassDB::bind_method(D_METHOD("font_bitmap_add_texture", "font", "texture"), &TextServer::font_bitmap_add_texture); + ClassDB::bind_method(D_METHOD("font_bitmap_add_char", "font", "char", "texture_idx", "rect", "align", "advance"), &TextServer::font_bitmap_add_char); + ClassDB::bind_method(D_METHOD("font_bitmap_add_kerning_pair", "font", "A", "B", "kerning"), &TextServer::font_bitmap_add_kerning_pair); ClassDB::bind_method(D_METHOD("font_get_height", "font", "size"), &TextServer::font_get_height); ClassDB::bind_method(D_METHOD("font_get_ascent", "font", "size"), &TextServer::font_get_ascent); |