summaryrefslogtreecommitdiff
path: root/scene/resources
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2015-03-22 01:46:18 -0300
committerJuan Linietsky <reduzio@gmail.com>2015-03-22 01:46:18 -0300
commitc6c72a3c37a44964ec8e6b3353f78635bf588eab (patch)
tree07cdc6f2a776dece704cce526cfd15ae04e44360 /scene/resources
parent40496dd76ae53c93ef5ea7e56671682a7cae9def (diff)
input events on Area2D is now supported
also added a demo showing how this works
Diffstat (limited to 'scene/resources')
-rw-r--r--scene/resources/font.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/scene/resources/font.cpp b/scene/resources/font.cpp
index 24d413ed60..79316f0019 100644
--- a/scene/resources/font.cpp
+++ b/scene/resources/font.cpp
@@ -523,6 +523,10 @@ void Font::_bind_methods() {
ObjectTypeDB::bind_method(_MD("add_texture","texture:Texture"),&Font::add_texture);
ObjectTypeDB::bind_method(_MD("add_char","character","texture","rect","align","advance"),&Font::add_char,DEFVAL(Point2()),DEFVAL(-1));
+
+ ObjectTypeDB::bind_method(_MD("get_texture_count"),&Font::get_texture_count);
+ ObjectTypeDB::bind_method(_MD("get_texture:Texture","idx"),&Font::get_texture);
+
ObjectTypeDB::bind_method(_MD("get_char_size","char","next"),&Font::get_char_size,DEFVAL(0));
ObjectTypeDB::bind_method(_MD("get_string_size","string"),&Font::get_string_size);