diff options
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/ruby2d/font.rb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/ruby2d/font.rb b/lib/ruby2d/font.rb index 08f6b17..d83b315 100644 --- a/lib/ruby2d/font.rb +++ b/lib/ruby2d/font.rb @@ -63,11 +63,12 @@ module Ruby2D end # If MRuby else - if `uname`.include? 'Darwin' # macOS + uname = `uname` + if uname.include? 'Darwin' # macOS macos_font_path - elsif `uname`.include? 'Linux' + elsif uname.include? 'Linux' linux_font_path - elsif `uname`.include? 'MINGW' + elsif uname.include? 'MINGW' windows_font_path end end |
