소스 검색

add bind method for create_from_fnt (load fnt made by BMFont)

volzhs 10 년 전
부모
커밋
5ffa3f4ff0
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      scene/resources/font.cpp

+ 1 - 0
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);