Debian Codegraph @

texmf-dist/fonts/source/public/mxedruli/mxedbase.mf

raw
1 % Mxedruli Base File `mxedbase.mf'
2 %
3 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
4 % Designed by Johannes Heinecke %
5 % <[email protected]> %
6 % This software is under the LaTeX Project Public License %
7 % Please send any improvements, corrections, suggestions, enhancements etc %
8 % to the Author! %
9 % %
10 % Version 2.0 as of 16th June 1995 %
11 % %
12 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
13 %
14
15 mxedbase:=1; % Es soll nur einmal geladen werden.
16
17 newinternal slant;
18
19 def font_mxed_setup = % Eigenes Macro
20 define_pixels(mxu, mxlittle, mxhalf, mxone, mxheight, mxthird,
21 mxmiddle, mxtop, mxfeet, mxlow, mxzw);
22 define_blacker_pixels(px1, py1, dpx1, dpy1, pdot, pdash);
23
24 pickup pencircle xscaled px1 yscaled py1 rotated -10; % was -10
25 mxed_pen:=savepen;
26 pickup pencircle xscaled px1 yscaled .7py1 rotated -10; % was -10
27 mxed_finepen:=savepen;
28 pickup pencircle xscaled px1 yscaled py1 rotated -100; % was -10
29 mxed_penturned:=savepen;
30
31 pickup pencircle xscaled dpx1 yscaled dpy1 rotated -10;
32 mxed_digitpen:=savepen; % Pen for digits and punctuation
33
34 pickup pencircle scaled pdot;
35 mxed_dot:=savepen; % Pen for dots
36
37 pickup pencircle scaled pdash;
38 mxed_dash:=savepen; % Pen for lines
39
40
41 pickup pensquare scaled pdash;
42 mxed_square:=savepen;
43
44 pickup pencircle xscaled px1 yscaled py1;
45 mxed_pencc:=savepen;
46
47 currenttransform:=identity slanted slant yscaled aspect_ratio;
48 enddef;
49
50
51
52 if known cmbase:
53 def makebox(text rule) =
54 for y=0,h,mxlittle,-d,mxthird:
55 rule((0,y)t_,(r,y)t_); endfor % horizontals
56 for x=0,r,r-mxzw,mxhalf,mxone:
57 rule((x,-d)t_,(x,h)t_); endfor % verticals
58 % for x=u*(1+floor(l/u)) step u until r-1:
59 % rule((x,-body_depth)t_,(x,body_height)t_); endfor % more verticals
60 % if charic<>0:
61 % rule((r+charic*pt,h.o_),(r+charic*pt,.5h.o_)); fi % italic correction
62 enddef;
63 else:
64 def makebox(text r) =
65 % horizontal lines on y-values:
66 % 0, char-height, char-depth, mxlittle, ...
67 for y=0%,h.o_,-d.o_
68 ,mxlittle,mxthird, mxheight,-mxlow: r((0,y),(w,y)); endfor
69 % vertical lines on x-values:
70 % 0, char-width, char-width - mxzw
71 % for x=0,w,w-mxzw, mxhalf, mxone: r((x,-d.o_),(x,h.o_)); endfor
72 for x=0,w, mxhalf, mxone: r((x,-mxlow),(x,mxheight)); endfor
73 if charic<>0: r((w+charic*hppp,h.o_),(w+charic*hppp,.5h.o_)); fi
74 enddef;
75 fi
76
77
78 endinput;