From ab8ca7894552a54781112938032a94a80c10b573 Mon Sep 17 00:00:00 2001 From: Tom Black Date: Sat, 26 Dec 2015 00:00:52 -0600 Subject: Add placeholders for new Text functionality - Changing text colors - Updating text content --- lib/ruby2d/text.rb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib') diff --git a/lib/ruby2d/text.rb b/lib/ruby2d/text.rb index b92f348..2dd36e9 100644 --- a/lib/ruby2d/text.rb +++ b/lib/ruby2d/text.rb @@ -31,6 +31,10 @@ module Ruby2D update_color(c) end + def text=(t) + + end + def remove if defined? Ruby2D::DSL Ruby2D::Application.remove(self) @@ -40,6 +44,7 @@ module Ruby2D private def resolve_path(font) + # TODO: Consider CSS names, like 'serif', 'san-serif', 'monospace' if RUBY_PLATFORM =~ /darwin/ font_path = "/Library/Fonts/#{font}.ttf" unless File.exists? font_path -- cgit v1.2.3