summaryrefslogtreecommitdiff
path: root/fonts/thai/rmit/chard6.mf
blob: cf4ca72959fce6daa7d8b2d42a17a883856af069 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
beginthaichar("EU!", "D6", "seu/sheu", 0, normht# + uvgap# + uvht#, 0);
	med := 1/2[thin, thick];
	x1l + med = x1r;
	y1l - thin = y1r;
	z1 = 1/2[z1l, z1r];
	x2t = x2b = 1/2[x1, x3];
	y2t = y2b + med;
	z2 = 1/2[z2t, z2b];
	x3l + med = x3r;
	y3l + thin = y3r;
	z3 = 1/2[z3l, z3r];
	penpos4(thin, 0);
	penpos5(thin, 270);
	penpos6(thin, 180);
	penpos7(thin, 90);

	x6r = - rightgap;
	x3r = x1l - normwd;
	y1r = normht + uvgap;
	y2t = y1r + uvht - dia/2;
	y3l = y1r + thin;
	z6 = z4 + (dia, 0);
	z5 = z7 + (0, dia);
	x5 = 1/2[x4, x6];
	y6 = 1/2[y5, y7];
	bot y7l = y1r;
	x4r = x1r;

	filldraw z1r -- z3l{up} .. z2t .. {down}cycle;
	unfill z1l -- z3r{up} .. z2b .. {down}cycle;
	filldraw z4l{up} .. z5l{right} .. z6l{down} .. z7l{left} .. cycle;
	unfill z4r{up} .. z5r{right} .. z6r{down} .. z7r{left} .. cycle;
	penlabels(1,2,3,4,5,6,7);
endthaichar;