Debian Codegraph @

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

raw
1 % Xucuri Base File `xucbase.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 0.3 as of 17th July 1998 %
11 % %
12 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
13 %
14 xucbase:=1; % Es soll nur einmal geladen werden.
15
16 newinternal slant;
17
18 def font_xuc_setup = % Eigenes Macro
19 define_pixels(mxu, mxlittle, mxhalf, mxone, mxheight, mxthird,
20 mxmiddle, mxtop, mxfeet, mxlow, mxzw,
21 mxseriffoot,
22 xuclu, xucllittle, xuclhalf, xuclone, xuclheight, xuclthird,
23 xuclmiddle, xucltop, xuclfeet, xucllow, xuclzw,
24 xuclseriffoot);
25
26 define_blacker_pixels(px1, py1, dpx1, dpy1, px2, py2, pdot,
27 pdash, pcomma, mxserifonset);
28
29 % used by Xucuri majuscules
30 pickup pensquare xscaled px1 yscaled py1 rotated 0;
31 xuc_pen:=savepen;
32
33 % used by Xucuri minuscules main strokes
34 pickup penrazor xscaled px2 rotated 10;
35 xuc_penl:=savepen;
36
37 % used by Xucuri minuscules secondary
38 pickup penrazor xscaled px2 rotated 1;
39 xuc_penlx:=savepen;
40
41 % used by Xucuri arabesques
42 pickup pencircle xscaled px2 yscaled py2 rotated 10;
43 xuc_penb:=savepen;
44
45 pickup penrazor xscaled px2 rotated 30;
46 xuc_penlr:=savepen;
47
48 pickup pencircle xscaled dpx1 yscaled dpy1 rotated 90; % rotated -10;
49 xuc_digitpen:=savepen; % Pen for digits
50
51 pickup pencircle xscaled dpx1 yscaled dpy1; % rotated -10;
52 xuc_punctpen:=savepen; % Pen for punctuation
53
54 pickup pencircle scaled pdot;
55 xuc_dot:=savepen; % Pen for dots
56
57 pickup pencircle scaled pdash;
58 xuc_dash:=savepen; % Pen for lines
59
60 pickup pencircle scaled pcomma;
61 xuc_pcomma:=savepen; % Pen for Commas
62
63 pickup pensquare scaled pdash;
64 xuc_square:=savepen;
65
66
67 currenttransform:=identity slanted slant yscaled aspect_ratio;
68 enddef;
69
70 if known cmbase: % Boxen f"uer den Proofmode (mit CM-Base)
71 def makebox(text rule) =
72 for y=0,h,mxlittle,-d,mxthird:
73 rule((0,y)t_,(r,y)t_); endfor % horizontals
74 for x=0,r,r-mxzw,mxhalf,mxone:
75 rule((x,-d)t_,(x,h)t_); endfor % verticals
76 % for x=u*(1+floor(l/u)) step u until r-1:
77 % rule((x,-body_depth)t_,(x,body_height)t_); endfor % more verticals
78 % if charic<>0:
79 % rule((r+charic*pt,h.o_),(r+charic*pt,.5h.o_)); fi % italic correction
80 enddef;
81
82 else: % Boxen f"uer den Proofmode
83 def makebox(text r) =
84 % horizontal lines on y-values:
85 % 0, char-height, char-depth, mxlittle, ...
86 for y=0, xucllittle, xuclheight, -xucllow:
87 r((0,y),(w-mxzw,y)); endfor
88 r((0, h.o_),(w, h.o_)); % Bounding Box top
89 r((0, -d.o_),(w, -d.o_)); % Bounding Box bottom
90 r((0, h.o_-2),(w, h.o_-2)); % Bounding Box top
91 r((0, -d.o_+2),(w, -d.o_+2)); % Bounding Box bottom
92
93 % vertical lines on x-values:
94 for x=0 step mxhalf until w-mxzw: r((x,h.o_),(x, -d.o_)); endfor
95 r((w,-d.o_),(w,h.o_)); % Bounding Box right
96 r((0,-d.o_),(0,h.o_)); % Bounding Box left
97 r((w-2,-d.o_),(w-2,h.o_)); % Bounding Box right
98 r((2,-d.o_),(2,h.o_)); % Bounding Box left
99 % if charic<>0: r((w+charic*hppp,h.o_),(w+charic*hppp,.5h.o_)); fi
100 enddef;
101
102 %% def makebox(text r) =
103 %% % horizontal lines on y-values:
104 %% % 0, char-height, char-depth, mxlittle, ...
105 %% for y=0, % h.o_,-d.o_
106 %% xmxthird ,xmxlittle, xmxmiddle, xmxheight,-xmxlow:
107 %% r((0,y),(w,y)); endfor
108 %% % vertical lines on x-values:
109 %% % 0, char-width, char-width - mxzw
110 %% % for x=0 step xmxhalf until w-mxzw+1: r((x,-xmxlow),(x,xmxheight)); endfor
111 %% for x=0 step xmxone/3 until w-mxzw+1: r((x,-xmxlow),(x,xmxheight)); endfor
112 %% r((w,-xmxlow),(w,xmxheight))
113 %% if charic<>0: r((w+charic*hppp,h.o_),(w+charic*hppp,.5h.o_)); fi
114 %% enddef;
115 fi
116
117 endinput;