lib/shogi_koma/painter.rb in shogi_koma-0.0.5 vs lib/shogi_koma/painter.rb in shogi_koma-0.0.6

- old
+ new

@@ -6,10 +6,13 @@ attr_accessor :width, :height, :font, :border_scale attr_reader :body_color, :frame_color, :text_color def initialize @width = 200 @height = 200 - @font = "IPAMincho" + ["Hiragino Mincho", "MS Mincho", "Noto"].each do |font_name| + @font = Fontdock::Local.find(font_name) + break if @font + end @border_scale = 1.0 set_body_rgb(1, 0.8, 0.2) set_frame_color(:black) set_text_color(:black) end