aboutsummaryrefslogtreecommitdiff
path: root/scene/resources/font.cpp
diff options
context:
space:
mode:
authorvolzhs2015-06-10 02:23:47 +0900
committervolzhs2015-06-10 02:23:47 +0900
commit5ffa3f4ff01352fe047cffeddc8681e71af264fc (patch)
tree12f4ab11ec977722cb182168a29fe72f5a809857 /scene/resources/font.cpp
parentbc6d91c8973619a6c4ce54a140197ba93d184cec (diff)
downloadgodot-5ffa3f4ff01352fe047cffeddc8681e71af264fc.tar.gz
godot-5ffa3f4ff01352fe047cffeddc8681e71af264fc.tar.zst
godot-5ffa3f4ff01352fe047cffeddc8681e71af264fc.zip
add bind method for create_from_fnt (load fnt made by BMFont)
Diffstat (limited to 'scene/resources/font.cpp')
-rw-r--r--scene/resources/font.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/resources/font.cpp b/scene/resources/font.cpp
index a598c6908..44fa7eadb 100644
--- a/scene/resources/font.cpp
+++ b/scene/resources/font.cpp
@@ -510,6 +510,7 @@ float Font::draw_char(RID p_canvas_item, const Point2& p_pos, const CharType& p_
void Font::_bind_methods() {
+ ObjectTypeDB::bind_method(_MD("create_from_fnt","path"),&Font::create_from_fnt);
ObjectTypeDB::bind_method(_MD("set_height","px"),&Font::set_height);
ObjectTypeDB::bind_method(_MD("get_height"),&Font::get_height);