From 5cb0c0581b2ba9b9c436edb7b6699c2b44243e2f Mon Sep 17 00:00:00 2001 From: lstrzebinczyk Date: Wed, 29 Mar 2017 21:28:14 +0200 Subject: Implement Text#height and Text#width --- lib/ruby2d/text.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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") -- cgit v1.2.3