summaryrefslogtreecommitdiff
path: root/fonts/thai/rmit/charb2.mf
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
committerNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
commite0c6872cf40896c7be36b11dcc744620f10adf1d (patch)
tree60335e10d2f4354b0674ec22d7b53f0f8abee672 /fonts/thai/rmit/charb2.mf
Initial commit
Diffstat (limited to 'fonts/thai/rmit/charb2.mf')
-rw-r--r--fonts/thai/rmit/charb2.mf52
1 files changed, 52 insertions, 0 deletions
diff --git a/fonts/thai/rmit/charb2.mf b/fonts/thai/rmit/charb2.mf
new file mode 100644
index 0000000000..c483d4fd81
--- /dev/null
+++ b/fonts/thai/rmit/charb2.mf
@@ -0,0 +1,52 @@
+beginthaichar("TAW POO-TAO!", "B2", "tp", 3thick# + jutout# + 2normwd#, normht#, 0 );
+ penpos1(thin, 180);
+ penpos2(thin, 90);
+ penpos3(thin, 0);
+ penpos4(thin, 270);
+ penpos5(thin, 135);
+ penpos6(thick, 0);
+ penpos7(thick, 0);
+ penpos8(thin, 0);
+ penpos9(thin, 270);
+ penpos10(thin, 270);
+ penpos11(1/2[thin, thick], 270);
+ penpos12(thick, 180);
+ dd_def(14);
+ penpos15(thick, 0);
+ topcap_def(16);
+
+ x1r = x3r + dia;
+ x2 = x4 = 1/2[x1, x3];
+ x2 = 1/2[x6r, x12r];
+ x6l = x7l = x8l + 1/2(thick - thin);
+ lft x8l = leftmost;
+ x10 = 1/2[x8, x12];
+ x9 = 1/2[x8, x10];
+ x11 = 1/2[x10, x12];
+ x12l = x14r;
+ y1 = y3 = 1/2[y2, y4];
+ y4r = y2r + dia;
+ y3l = 2/3[0, y10r];
+ bot y6 = bot y13 = 0;
+ y7 = y2 - thick;
+ y8 = y12 = y9 - curveht;
+ top y9l = top y11l = normht + overshoot;
+ y10 = y9 - 0.5curveht;
+ z5r = 1/2[z1, z3] + dia/2 * dir 315;
+ lft x1lft = leftmost;
+ x14 = 1/2[leftmost, rightmost] + thick;
+ rt x16rt = rt x15r = rightmost;
+ bot y15 = 0;
+ top y16top = normht;
+
+ filldraw z1r{down} .. z2r{left} .. z3r{up} .. z4r{right} .. z1r{down}
+ .. {dir 215}z5r --- z6l -- z6r --- z5l{dir 45} .. z1l{up}
+ .. z4l{left} .. z3l{down} .. z2l{right} .. z1l{up} -- cycle;
+ filldraw z6l{up} --- z7l .. z8l{up} .. z9l{right} .. z10l{right}
+ .. z11l{right} .. {down}z12l
+ -- dd_path_o(14) .. z15r -- z15l
+ .. reverse dd_path_i(14)
+ -- z12r{up} .. z11r{left} .. z10r{left} .. z9r{left}
+ .. z8r{down} .. z7r --- {down}z6r -- cycle;
+ filldraw z15l -- z15r -- z16r -- z16l -- cycle;
+endthaichar;