+void PartsHeight(const KGString *in, int *ly, int *ry){\r
+ int tempShotai;\r
+ DrawBox();\r
+ tempShotai = kShotai;\r
+ kShotai = kGothic;\r
+ drawGlyph(in, 1);\r
+ kShotai = tempShotai;\r
+ DotsHeight(ly, ry);\r
+ /*\r
+ int i;\r
+ int *buf, strokes;\r
+ double t, y;\r
+ \r
+ *ly = 1000; *ry = 0;\r
+ buf = convertStroke(in->str, buf, &strokes);\r
+ \r
+ for(i = 0; i < strokes; i++){\r
+ switch(buf[i * 11 + 0] % 10){\r
+ \r
+ case 0:\r
+ case 9:\r
+ break;\r
+ case 1:\r
+ if(*ly > buf[i * 11 + 4]) *ly = buf[i * 11 + 4];\r
+ if(*ry < buf[i * 11 + 4]) *ry = buf[i * 11 + 4];\r
+ if(*ly > buf[i * 11 + 6]) *ly = buf[i * 11 + 6];\r
+ if(*ry < buf[i * 11 + 6]) *ry = buf[i * 11 + 6];\r
+ break;\r
+ case 2:\r
+ for(t = 0; t <= 1; t = t + 0.05){\r
+ y = (1.0 - t) * (1.0 - t) * buf[i * 11 + 4] + 2.0 * t * (1.0 - t) * buf[i * 11 + 6] + t * t * buf[i * 11 + 8];\r
+ if(*ly > y) *ly = y;\r
+ if(*ry < y) *ry = y;\r
+ }\r
+ break;\r
+ case 3:\r
+ if(*ly > buf[i * 11 + 4]) *ly = buf[i * 11 + 4];\r
+ if(*ry < buf[i * 11 + 4]) *ry = buf[i * 11 + 4];\r
+ if(*ly > buf[i * 11 + 6]) *ly = buf[i * 11 + 6];\r
+ if(*ry < buf[i * 11 + 6]) *ry = buf[i * 11 + 6];\r
+ if(*ly > buf[i * 11 + 8]) *ly = buf[i * 11 + 8];\r
+ if(*ry < buf[i * 11 + 8]) *ry = buf[i * 11 + 8];\r
+ break;\r
+ case 6:\r
+ for(t = 0; t < 1; t = t + 0.05){\r
+ y = (1.0 - t) * (1.0 - t) * (1.0 - t) * buf[i * 11 + 4] + 3.0 * t * (1.0 - t) * (1.0 - t) * buf[i * 11 + 6] + 3 * t * t * (1.0 - t) * buf[i * 11 + 8] + t * t * t * buf[i * 11 + 10];\r
+ if(*ly > y) *ly = y;\r
+ if(*ry < y) *ry = y;\r
+ }\r
+ break;\r
+ case 7:\r
+ if(*ly > buf[i * 11 + 4]) *ly = buf[i * 11 + 4];\r
+ if(*ry < buf[i * 11 + 4]) *ry = buf[i * 11 + 4];\r
+ for(t = 0; t < 1; t = t + 0.05){\r
+ y = (1.0 - t) * (1.0 - t) * buf[i * 11 + 6] + 2.0 * t * (1.0 - t) * buf[i * 11 + 8] + t * t * buf[i * 11 + 10];\r
+ if(*ly > y) *ly = y;\r
+ if(*ry < y) *ry = y;\r
+ }\r
+ }\r
+ }\r
+ free(buf);\r
+ */\r
+ /*\r