#!ruby -Ks # -*- mode: ruby; encoding: sjis -*- # Last updated: <2014/12/16 01:42:14 +0900> require 'dxruby' require_relative 'bdffont' bdf = BDFFont.new("mplus_j12r_jisx0208.bdf") bdf.add("mplus_f12r_iso8859.bdf") Window.loop do break if Input.keyPush?(K_ESCAPE) x, y = 10, 10 Window.draw_bdffont(x, y, "This is a BDF font", bdf) y += bdf.height Window.draw_bdffont(x, y, "The quick brown fox jumps over the lazy dog.", bdf) y += bdf.height Window.draw_bdffont(x, y, "1234567890 ! = - +", bdf) y += bdf.height Window.draw_bdffont(x, y, "あたらしい朝が来た希望の朝だ。", bdf) end