From 5ffa3f4ff01352fe047cffeddc8681e71af264fc Mon Sep 17 00:00:00 2001 From: volzhs Date: Wed, 10 Jun 2015 02:23:47 +0900 Subject: [PATCH] add bind method for create_from_fnt (load fnt made by BMFont) --- scene/resources/font.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/scene/resources/font.cpp b/scene/resources/font.cpp index a598c690892..44fa7eadbd3 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);