package sample.svg;
import static util.SVGUtil.*;

public class FontTest {

	//フォント名を格納した配列
	private static String fonts[] = 
	    { "serif", "sans-serif", "monospace", "cursive", "fantasy"
	      , "MS-Mincho", "MS-Gothic", "MS-PMincho", "MS-PGothic"
	      , "ＭＳ 明朝", "ＭＳ ゴシック", "ＭＳ Ｐゴシック", "ＭＳ Ｐ明朝"
	      , "Arial", "Times New Roman", "Verdana", "Courier New"
	      , "Andale Mono", "Comic Sans MS", "Garamond", "Georgia", "Impact", "Tahoma", "Trebuchet MS"
	    };
	    
	public static void main(String[] args) {
	    int i, length;
	    
	    start();                                    //描画開始
	    rulers();                                   //ブックカバー用の線を引く

	    length = fonts.length;                      //配列の長さ
	    for(i=0; i<length; i++) {                   //配列に格納したフォント全てで指定した文字を描写
	        textFont(fonts[i], 4);                  //文字のフォントと大きさを指定
	        fill(hsb1((double)i/length, 1, 1));     //文字の色を指定
	        text("%s: Faculty of Engineering, Kagawa University （香川大学工学部）", 50, 35+i*150.0/length, fonts[i]);
	    }
	    
	    finish();                                   //描画終了
	}
}
