summaryrefslogtreecommitdiff
path: root/fonts/wnri/ubaracct.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/ubaracct.mf
Initial commit
Diffstat (limited to 'fonts/wnri/ubaracct.mf')
-rw-r--r--fonts/wnri/ubaracct.mf28
1 files changed, 28 insertions, 0 deletions
diff --git a/fonts/wnri/ubaracct.mf b/fonts/wnri/ubaracct.mf
new file mode 100644
index 0000000000..c388fb12f9
--- /dev/null
+++ b/fonts/wnri/ubaracct.mf
@@ -0,0 +1,28 @@
+%
+% Washington Romanized Indic accent driver
+%
+% Macro to draw underbar accents
+%
+
+cmchar "Macron (bar) accent";
+numeric macron_breadth#; macron_breadth#=.2[vair#,stem#];
+beginchar(oct"026",9u#,.4[x_height#,asc_height#]+macron_breadth#,0);
+italcorr h#*slant-.75u#;
+adjust_fit(0,0);
+numeric macron_breadth; macron_breadth:=Vround .2[vair,stem];
+pickup if serifs: crisp.nib else: fine.nib fi;
+pos1(macron_breadth,90); pos2(macron_breadth,90);
+top y1r=top y2r=h+o; lft x1=w-rt x2=hround 1.25u;
+filldraw stroke z1e--z2e; % bar
+transform Tf; Tf=identity shifted(-.5w+slant*(-h-.25x_height),aspect_ratio*(-h-.25x_height));
+savePicture(MacronPic);
+endgroup;
+extra_endchar:=
+% " czdm ap(MacronPic); ad; oechar; ";
+ " czd ap(MacronPic); ad; oechar; ";
+boolean dotson; dotson=true; % don't omit dots on i, j, and possibly etc.
+
+def cp = ubar enddef;
+
+% end of file ubaracct.mf
+