2 # Copyright (C) 2002-2004 Kouichirou Eto, All rights reserved.
3 # kage testcase by eto 2003-0318
6 #require "chise/stroke"
9 #class TestKage < Test::Unit::TestCase
19 char = Character.get(0x4e03) #δΈƒ
20 font = @kage.get(0x4e03)
21 assert_instance_of(KageGlyph, font)
26 M 330,50 330,900 M 330,900 Q 330,950 380,950 M 380,950 840,950 M 840,950 Q 890,950 915,850
28 strokes = KageParser.parse(svg)
34 assert_equal([[0, 0, 1000, 1000]], pr.parse("M 0,0 1000,1000"))
35 assert_equal([[0, 0, 0, 1000], [0, 1000, 1000, 1000]], pr.parse("M 0,0 0,1000 1000,1000"))
36 # assert_equal([[0, 0, 0.0, 0.0], [0.0, 0.0, 62.5, 437.5], [62.5, 437.5, 250.0, 750.0], [250.0, 750.0, 562.5, 937.5]], pr.parse("M 0,0 Q 0,1000 1000,1000"))