summaryrefslogtreecommitdiffhomepage
path: root/lib
diff options
context:
space:
mode:
authorlstrzebinczyk <[email protected]>2017-03-29 21:28:14 +0200
committerTom Black <[email protected]>2017-04-02 12:22:49 -0400
commit5cb0c0581b2ba9b9c436edb7b6699c2b44243e2f (patch)
tree8f3308dc986139e0e4ed69d7e6c266afab8a4eaf /lib
parent02c1353d4fe6b4eef5c45d1ad45af53c782d2824 (diff)
downloadruby2d-5cb0c0581b2ba9b9c436edb7b6699c2b44243e2f.tar.gz
ruby2d-5cb0c0581b2ba9b9c436edb7b6699c2b44243e2f.zip
Implement Text#height and Text#width
Diffstat (limited to 'lib')
-rw-r--r--lib/ruby2d/text.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ruby2d/text.rb b/lib/ruby2d/text.rb
index 524b840..9f8da51 100644
--- a/lib/ruby2d/text.rb
+++ b/lib/ruby2d/text.rb
@@ -4,7 +4,7 @@ module Ruby2D
class Text
attr_accessor :x, :y, :data
- attr_reader :text, :size, :font, :color
+ attr_reader :text, :size, :width, :height, :font, :color
def initialize(x=0, y=0, text="Hello World!", size=20, font=nil, c="white")