diff options
author | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2022-03-11 09:31:16 +0200 |
---|---|---|
committer | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2022-03-11 14:02:30 +0200 |
commit | b32e8d63d8d3bfe65f6692ff15f5a82171a8bf61 (patch) | |
tree | 7a6e7a945a25a8e954e81b9e409f80188db4f2c9 /servers/text_server.cpp | |
parent | 1e099afc8ac420f5c97b07067e28d6309ed55ae7 (diff) |
Add options to embolden and transform font outlines to simulate bold and italic typefaces.
Diffstat (limited to 'servers/text_server.cpp')
-rw-r--r-- | servers/text_server.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/servers/text_server.cpp b/servers/text_server.cpp index e84c0f05cc..d188076607 100644 --- a/servers/text_server.cpp +++ b/servers/text_server.cpp @@ -241,6 +241,12 @@ void TextServer::_bind_methods() { ClassDB::bind_method(D_METHOD("font_set_subpixel_positioning", "font_rid", "subpixel_positioning"), &TextServer::font_set_subpixel_positioning); ClassDB::bind_method(D_METHOD("font_get_subpixel_positioning", "font_rid"), &TextServer::font_get_subpixel_positioning); + 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_transform", "font_rid", "transform"), &TextServer::font_set_transform); + ClassDB::bind_method(D_METHOD("font_get_transform", "font_rid"), &TextServer::font_get_transform); + ClassDB::bind_method(D_METHOD("font_set_variation_coordinates", "font_rid", "variation_coordinates"), &TextServer::font_set_variation_coordinates); ClassDB::bind_method(D_METHOD("font_get_variation_coordinates", "font_rid"), &TextServer::font_get_variation_coordinates); |