# encoding: shift_jis
import(tk)
import(freetype)
import(net.http)

path.exists('proxy_setting.az') && import(proxy_setting)

I(filename:string) = path.join(path.dirname(sys.executable),
									'sample', 'resource', filename)
//fontName = I('Kaufmann Bold BT.ttf')
fontName = 'http://sourceforge.jp/projects/ascript/svn/view/trunk/sample/resource/Kaufmann%20Bold%20BT.ttf?revision=3815&root=ascript'
lambda {
	img = image(`rgb, 640, 480, `white)
	face = freetype.open(fontName, 0).setheight(64).setcolor(`black)
	img.drawtext(face, 0, (1..4) * face.height, "What this font looks like")
	img.show()
}()
