summaryrefslogtreecommitdiffhomepage
path: root/lib
diff options
context:
space:
mode:
authorTom Black <[email protected]>2015-12-26 00:00:52 -0600
committerTom Black <[email protected]>2015-12-26 00:00:52 -0600
commitab8ca7894552a54781112938032a94a80c10b573 (patch)
tree53aaebb528386b9523c094dbb2c71e3a251ecf1f /lib
parent9f7ff8d1ba22de93efe297428414040ddf3c1679 (diff)
downloadruby2d-ab8ca7894552a54781112938032a94a80c10b573.tar.gz
ruby2d-ab8ca7894552a54781112938032a94a80c10b573.zip
Add placeholders for new Text functionality
- Changing text colors - Updating text content
Diffstat (limited to 'lib')
-rw-r--r--lib/ruby2d/text.rb5
1 files changed, 5 insertions, 0 deletions
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