summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2015-06-22 23:57:54 -0300
committerJuan Linietsky <reduzio@gmail.com>2015-06-22 23:57:54 -0300
commit25470dd3a097a7b26859ef0273a8870c5a183a36 (patch)
treed998d30981a65145c13f16c31f28ab0e2e42899d
parent5092cc46b4f8044c99234fb47d7941d7bcb11c41 (diff)
parent9bee9e7498c701f7dfbb0f68b69272143216693f (diff)
Merge pull request #2058 from volzhs/create_from_fnt
add bind method for create_from_fnt (load fnt made by BMFont)
-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 a598c69089..2d93113b40 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);