-function Kage(){\r
+function Kage(size){\r
// method\r
function makeGlyph(polygons, buhin){ // void\r
var glyphData = this.kBuhin.search(buhin);\r
\r
this.kRate = 100;\r
\r
- this.kMinWidthY = 2;\r
- this.kMinWidthT = 6;\r
- this.kWidth = 5;\r
- this.kKakato = 3;\r
- this.kL2RDfatten = 1.1;\r
- this.kMage = 10;\r
- this.kUseCurve = 0;\r
- \r
- this.kAdjustKakatoL = ([14, 9, 5, 2]); // for KAKATO adjustment 000,100,200,300\r
- this.kAdjustKakatoR = ([8, 6, 4, 2]); // for KAKATO adjustment 000,100,200,300\r
- this.kAdjustKakatoRangeX = 20; // check area width\r
- this.kAdjustKakatoRangeY = ([1, 19, 24, 30]); // 3 steps of checking\r
- this.kAdjustKakatoStep = 3; // number of steps\r
- \r
- this.kAdjustUrokoX = ([24, 20, 16, 12]); // for UROKO adjustment 000,100,200,300\r
- this.kAdjustUrokoY = ([12, 11, 9, 8]); // for UROKO adjustment 000,100,200,300\r
- this.kAdjustUrokoLength = ([22, 36, 50]); // length for checking\r
- this.kAdjustUrokoLengthStep = 3; // number of steps\r
- this.kAdjustUrokoLine = ([22, 26, 30]); // check for crossing. corresponds to length\r
- \r
+ if(size == 1){\r
+ this.kMinWidthY = 1.2;\r
+ this.kMinWidthT = 3.6;\r
+ this.kWidth = 3;\r
+ this.kKakato = 1.8;\r
+ this.kL2RDfatten = 1.1;\r
+ this.kMage = 6;\r
+ this.kUseCurve = 0;\r
+ \r
+ this.kAdjustKakatoL = ([8, 5, 3, 1]); // for KAKATO adjustment 000,100,200,300\r
+ this.kAdjustKakatoR = ([4, 3, 2, 1]); // for KAKATO adjustment 000,100,200,300\r
+ this.kAdjustKakatoRangeX = 12; // check area width\r
+ this.kAdjustKakatoRangeY = ([1, 11, 14, 18]); // 3 steps of checking\r
+ this.kAdjustKakatoStep = 3; // number of steps\r
+ \r
+ this.kAdjustUrokoX = ([14, 12, 9, 7]); // for UROKO adjustment 000,100,200,300\r
+ this.kAdjustUrokoY = ([7, 6, 5, 4]); // for UROKO adjustment 000,100,200,300\r
+ this.kAdjustUrokoLength = ([13, 21, 30]); // length for checking\r
+ this.kAdjustUrokoLengthStep = 3; // number of steps\r
+ this.kAdjustUrokoLine = ([13, 15, 18]); // check for crossing. corresponds to length\r
+ } else {\r
+ this.kMinWidthY = 2;\r
+ this.kMinWidthT = 6;\r
+ this.kWidth = 5;\r
+ this.kKakato = 3;\r
+ this.kL2RDfatten = 1.1;\r
+ this.kMage = 10;\r
+ this.kUseCurve = 0;\r
+ \r
+ this.kAdjustKakatoL = ([14, 9, 5, 2]); // for KAKATO adjustment 000,100,200,300\r
+ this.kAdjustKakatoR = ([8, 6, 4, 2]); // for KAKATO adjustment 000,100,200,300\r
+ this.kAdjustKakatoRangeX = 20; // check area width\r
+ this.kAdjustKakatoRangeY = ([1, 19, 24, 30]); // 3 steps of checking\r
+ this.kAdjustKakatoStep = 3; // number of steps\r
+ \r
+ this.kAdjustUrokoX = ([24, 20, 16, 12]); // for UROKO adjustment 000,100,200,300\r
+ this.kAdjustUrokoY = ([12, 11, 9, 8]); // for UROKO adjustment 000,100,200,300\r
+ this.kAdjustUrokoLength = ([22, 36, 50]); // length for checking\r
+ this.kAdjustUrokoLengthStep = 3; // number of steps\r
+ this.kAdjustUrokoLine = ([22, 26, 30]); // check for crossing. corresponds to length\r
+ }\r
+\r
this.kBuhin = new Buhin();\r
\r
return this;\r