summaryrefslogtreecommitdiff
path: root/fonts/wnri/bnduacct.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/wnri/bnduacct.mf
Initial commit
Diffstat (limited to 'fonts/wnri/bnduacct.mf')
-rw-r--r--fonts/wnri/bnduacct.mf32
1 files changed, 32 insertions, 0 deletions
diff --git a/fonts/wnri/bnduacct.mf b/fonts/wnri/bnduacct.mf
new file mode 100644
index 0000000000..d36283b2e3
--- /dev/null
+++ b/fonts/wnri/bnduacct.mf
@@ -0,0 +1,32 @@
+%
+% Washington Romanized Indic accent driver
+%
+% Macro for candrabindu accent
+%
+
+cmchar "candrabindu accent";
+numeric dot_diam#, dot_diam; dot_diam#=max(dot_size#,cap_curve#);
+beginchar(oct"025",9u#,min(asc_height#,2x_height#),0);
+define_whole_blacker_pixels(dot_diam);
+italcorr h#*slant+.5vair#-1.5u#;
+adjust_fit(0,0);
+pickup crisp.nib; pos1(vair,-180); pos3(vair,0);
+numeric mid_thickness; mid_thickness=vround 1/3[vair,stem];
+pos2(mid_thickness,-90); x2=.5w;
+bot y2r=vround max(x_height+o+tiny,1/3[x_height,h]+o-.5mid_thickness);
+y1=y3=.5[y2l,h]; lft x1r=w-rt x3r=hround(2u-.5vair);
+filldraw stroke z1e{down}...z2e{right}...{up}z3e; % stroke
+pickup tiny.nib; pos11(dot_diam,0); pos12(dot_diam,90);
+x11=x12=.5w; top y12r=max(h+1,y2l+1.5dot_diam);
+y11=.5[y12l,y12r]; dot(11,12);
+makeACCENT(CbPic);
+endgroup;
+
+extra_endchar:=
+ " czu ap(CbPic); ah; oechar; ";
+boolean dotson; dotson=false; % omit dots on i, j, and possibly etc.
+
+def cp = bindu enddef;
+
+% end of file bnduacct.mf
+