summaryrefslogtreecommitdiffstats
path: root/scene/resources/font.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'scene/resources/font.cpp')
-rw-r--r--scene/resources/font.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/scene/resources/font.cpp b/scene/resources/font.cpp
index a9d8fc38a4..0047f443d0 100644
--- a/scene/resources/font.cpp
+++ b/scene/resources/font.cpp
@@ -62,6 +62,7 @@ void Font::_bind_methods() {
ClassDB::bind_method(D_METHOD("get_font_name"), &Font::get_font_name);
ClassDB::bind_method(D_METHOD("get_font_style_name"), &Font::get_font_style_name);
+ ClassDB::bind_method(D_METHOD("get_ot_name_strings"), &Font::get_ot_name_strings);
ClassDB::bind_method(D_METHOD("get_font_style"), &Font::get_font_style);
ClassDB::bind_method(D_METHOD("get_font_weight"), &Font::get_font_weight);
ClassDB::bind_method(D_METHOD("get_font_stretch"), &Font::get_font_stretch);
@@ -243,6 +244,10 @@ String Font::get_font_name() const {
return TS->font_get_name(_get_rid());
}
+Dictionary Font::get_ot_name_strings() const {
+ return TS->font_get_ot_name_strings(_get_rid());
+}
+
String Font::get_font_style_name() const {
return TS->font_get_style_name(_get_rid());
}