diff options
| author | Tom Black <[email protected]> | 2018-10-05 22:35:48 -0700 |
|---|---|---|
| committer | Tom Black <[email protected]> | 2018-10-05 22:35:48 -0700 |
| commit | 13821e171daa52e2b9c4d35320eee0492b727bb7 (patch) | |
| tree | dbb65d74f8cbaccfa8bbb8a2887dca8bdcb553e7 | |
| parent | 229e346ebc9624afaba16d3da3e447030c858fff (diff) | |
| download | ruby2d-13821e171daa52e2b9c4d35320eee0492b727bb7.tar.gz ruby2d-13821e171daa52e2b9c4d35320eee0492b727bb7.zip | |
Remove old font path code in Text class
| -rw-r--r-- | lib/ruby2d/text.rb | 17 |
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 |
