summaryrefslogtreecommitdiffhomepage
path: root/lib
diff options
context:
space:
mode:
authorTom Black <[email protected]>2018-10-05 22:35:48 -0700
committerTom Black <[email protected]>2018-10-05 22:35:48 -0700
commit13821e171daa52e2b9c4d35320eee0492b727bb7 (patch)
treedbb65d74f8cbaccfa8bbb8a2887dca8bdcb553e7 /lib
parent229e346ebc9624afaba16d3da3e447030c858fff (diff)
downloadruby2d-13821e171daa52e2b9c4d35320eee0492b727bb7.tar.gz
ruby2d-13821e171daa52e2b9c4d35320eee0492b727bb7.zip
Remove old font path code in Text class
Diffstat (limited to 'lib')
-rw-r--r--lib/ruby2d/text.rb17
1 files changed, 0 insertions, 17 deletions
diff --git a/lib/ruby2d/text.rb b/lib/ruby2d/text.rb
index f3f0580..a8df8b5 100644
--- a/lib/ruby2d/text.rb
+++ b/lib/ruby2d/text.rb
@@ -40,22 +40,5 @@ module Ruby2D
@x < x and @x + @width > x and @y < y and @y + @height > y
end
- private
-
- def resolve_path(font)
- if RUBY_PLATFORM =~ /darwin/
- font_path = "/Library/Fonts/#{font}.ttf"
- else
- # Linux
- font_path = "/usr/share/fonts/truetype/#{font}.ttf"
- end
-
- unless File.exists? font_path
- raise Error, "Cannot find system font"
- else
- font_path
- end
- end
-
end
end