lib/shoes/swt/font.rb in shoes-swt-4.0.0.pre2 vs lib/shoes/swt/font.rb in shoes-swt-4.0.0.pre3

- old
+ new

@@ -1,22 +1,22 @@ class Shoes - module Swt module Font class << self def add_font(path) if File.exist? path ::Shoes::Font.add_font_to_fonts(path) if load_font(path) end end def initial_fonts - load_shoes_fonts #system fonts are loaded automatically by SWT + load_shoes_fonts # system fonts are loaded automatically by SWT ::Swt.display.get_font_list(nil, true).map(&:name) end private + def load_font(path) ::Swt.display.load_font path end def load_shoes_fonts @@ -26,7 +26,7 @@ end end end end - ::Shoes::Font.initial_fonts.each {|font| Shoes::FONTS << font} -end \ No newline at end of file + ::Shoes::Font.initial_fonts.each { |font| Shoes::FONTS << font } +end