From 13821e171daa52e2b9c4d35320eee0492b727bb7 Mon Sep 17 00:00:00 2001 From: Tom Black Date: Fri, 5 Oct 2018 22:35:48 -0700 Subject: Remove old font path code in Text class --- lib/ruby2d/text.rb | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'lib') 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 -- cgit v1.2.3