summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/fonts/source/public/gothic/cmfrabase.mf
blob: b91f6006ef9e7b86d77bdb519938ca2a1957c5f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
def n_foot(suffix $) =
w':=7.806u; penpos$.1(hair,90); penpos$.2(hair,0);
penpos$.3(hair,-90); 
y$.1=y$.3=0.5foot; y$.2=-apex_o;
x$.1=x$l-1/20w'; x$.3=x$r+1/20w';
x$.2=x$;
filldraw z$.2r{dir75}..z$.3r{dir15}--
z$.3l{dir165}..z$r{up}--z$l{down}..
z$.1r{dir195}--z$.1l{dir-15}..z$.2l{dir-65}
--z$.2r & cycle; 
enddef;

def o_umlaut(suffix $) =
pickup pensquare yscaled 0.5hair xscaled 0.3[hair,stem] rotated 30;
z$.1=z$+(0,0.1x_height);
z$.2=z$.1+(stem,0.1x_height);
x$.3=x$.2; y$.3=y$.2+0.1x_height;
x$.4=x$.1; y$.4-y$.3=y$.2-y$.1;
x$.5+x$.3=2x$.4; y$.5=y$.3;
x$.6+x$.2=2x$.1; y$.6=y$.2;
draw z$.1--z$.2--z$.3--z$.4--z$.5--z$.6--z$.1;
penlabels(z$.1,z$.2,z$.3,z$.4,z$.5,z$.6);
enddef;

def e_umlaut(suffix $) =
penpos$.1(2u,45); z$.1=z$;
pickup pensquare yscaled 0.5hair xscaled 0.3[hair,stem] rotated 30;
z$.2=z$.1r; z$.3=z$.1l; rt x$.4=rt x$.2; top y$.4=y$;
draw z$.3--z$.2..z$.3..z$.4;
enddef;

def cap_e_umlaut(suffix $) =
penpos$.1(2u,45); z$.1=z$;
pickup pensquare yscaled 0.5hair xscaled 0.3[hair,stem] rotated 30;
z$.2=z$.1r; z$.3=z$.1l; rt x$.4=rt x$.2; top y$.4=y$;
draw z$.3--z$.2..z$.3..z$.4;
enddef;

def pointpoint =
penpos1(0.23570*(x_height+2apex_o),45);
penpos2(0.23570*(x_height+2apex_o),45);
penpos3(0.23570*(x_height+2apex_o),45);
penpos4(0.23570*(x_height+2apex_o),45);
penpos5(0.23570*(x_height+2apex_o),45);
penpos6(0.23570*(x_height+2apex_o),45);
x1l=x3l=x5l=0.5w;
z2r=z3l; z4r=z5l;
z2-z1=whatever*dir135;
z4-z3=whatever*dir135;
z6-z5=whatever*dir135;
y1l=-apex_o; y6r=x_height+apex_o;
penstroke z1e--z2e;
enddef;



def pointaccent(suffix $) =
penpos1(0.23570*(x_height+2apex_o),45);
penpos2(0.23570*(x_height+2apex_o),45);
penpos3(0.23570*(x_height+2apex_o),45);
penpos4(0.23570*(x_height+2apex_o),45);
penpos5(0.23570*(x_height+2apex_o),45);
penpos6(0.23570*(x_height+2apex_o),45);
x1l=x3l=x5l=x$;
z2r=z3l; z4r=z5l;
z2-z1=whatever*dir135;
z4-z3=whatever*dir135;
z6-z5=whatever*dir135;
y1l=-apex_o+y$+0.1x_height; y6r=1.1x_height+apex_o+y$;
penstroke z1e--z2e;
enddef;




def old_e_umlaut(suffix $) =
numeric ww;
ww:=2u; penpos$.1(hair,147);
penpos$.2(1.5hair,90); penpos$.3(2.5hair,0);
penpos$.4(1.2hair,-90);
penpos$.5(hair,-147);
penpos$.6(hair,-57); penpos$.7(hair,-57);
z$.1=z$+(0.4ww,-0.2ww);
z$.2l=z$-(0.111ww,0.556ww);
z$.3l=z$-(0.5ww,apex_o);
z$.4l=(x$,y$+0.556ww);
z$.6-z$=whatever*dir33; x$.6r=x$+0.5ww;
z$.5l=z$.6l; z$.7=whatever[z$,z$.6];
x$.7=x$.3;
penstroke z$.1e..z$.2e{left}..z$.3e{up}
..z$.4e{right}..z$.5e;
penstroke z$.7e--z$.6e
enddef;

def umlaut (suffix $) =
y0=0; 0.5[x0,x0']=x$-2u;
z0'=z0+(2.5u,0);
penpos60(hair,145); 
z60=(x0+stem,y$+0.090x_height);
z61=(x0+1.522stem,y$+0.387x_height);
z62=(x0+1.956stem,y$+0.324x_height);
z60'=(x0'+stem,y$+0.090x_height);
z61'=(x0'+1.522stem,y$+0.387x_height);
z62'=(x0'+1.956stem,y$+0.324x_height);
filldraw z60l{dir34}..z62{up}..z61{left}
..z60r{dir259}--z60l & cycle;
penpos60'(hair,145); 
filldraw z60'l{dir34}..z62'{up}..z61'{left}
..z60'r{dir259}--z60'l & cycle
enddef;


def hat (suffix $) =
z60=(x$-2.5u,0.090x_height+y$);
z61=(x$+0.3u,0.387x_height+y$);
x62=x$-0.3u;   y62=0.3333*(2y60+y61);
y60'=y60; x60'+x60=2x$;
filldraw z60--z61--z60'{left}..z62..{left}cycle;
enddef;



def hungarum (suffix $) =
z60=(x$-2.5u-0.25stem,0.090x_height+y$);
z63=z60+(0.5stem,0);
z61=(x$,0.387x_height+y$);
z62=z61+(stem,0);
filldraw z60--z61--z62--z63--cycle;
filldraw z60--z61--z62--z63--cycle shifted (2.5u,0);
enddef;

def ellbar (suffix $) =
z60=(x$,y$-0.5u);
z61=(x$+3.5u,0.5u+y$);
pickup pensquare scaled 2hair;
draw z60--z61;
enddef;

def hacek (suffix $) =
z60=(x$-2.5u,0.387x_height+y$);
z61=(x$-0.3u,0.090x_height+y$);
x62=x$+0.3u;   y62=0.3333*(2y60+y61);
y60'=y60; x60'+x60=2x$;
filldraw z60--z61--z60'{left}..z62..{left}cycle;
enddef;

def breve (suffix $) =
z60=(x$-2.5u,0.387x_height+y$);
z61=(x$-0.3u,0.090x_height+y$);
x62=x$+0.3u;   y62=0.3333*(2y60+y61);
y63=y60; x63+x60=2x$;
z60'=z60+(0,hair);
z63'=z63+(0,hair);
filldraw z60..{right}z61{right}..z63--z63'..{left}z62{left}..z60'--cycle;
enddef;

def tilde (suffix $) =
z60=(x$-2.1u,0.090x_height+y$);
z61=(x$-u,0.387x_height+y$);
z62=(x$+u,0.090x_height+y$);
z63=(x$+2.1u,0.387x_height+y$);
pickup pensquare xscaled stem yscaled hair rotated 30;
draw z60...{right}z61..z62{right}...z63;
enddef;


def cedilla (suffix $) =
pickup pensquare scaled hair;
z60=z$;
z61=(x$+u+0.16w,y$-0.18x_height);
x62=x$; y62=y61-0.12x_height;
penpos60(stem,30); penpos61(stem,30); penpos62(stem,-30);
penstroke z60e{dir-30}..{down}z61e..{left}z62e;
enddef;


def ogonek (suffix $) =
pickup pensquare scaled hair;
z60=z$;
z61=(x$-u-0.16w,y$-0.18x_height);
x62=x$; y62=y61-0.12x_height;
penpos60(stem,-30); penpos61(stem,30); penpos62(stem,40);
penstroke z60e{dir-135}..{down+0.25right}z61e..{right+0.3up}z62e;
enddef;

def acute (suffix $) =
y0=0; 0.5[x0,x0']=x$-2u;
z0'=z0+(2.5u,0);
penpos60(hair,145); 
z60=(x0+stem,y$+0.090x_height);
z61=(x0+1.522stem,y$+0.387x_height);
z62=(x0+1.956stem,y$+0.324x_height);
z60'=(x0'+stem,y$+0.090x_height);
z61'=(x0'+1.522stem,y$+0.387x_height);
z62'=(x0'+1.956stem,y$+0.324x_height);
penpos60'(hair,145); 
filldraw z60l{dir34}..z62'{up}..z61'{left}
..z60r{dir259}--z60l & cycle
enddef;

def grave (suffix $) =
y0=0; 0.5[x0,x0']=x$-2u;
z0'=z0+(2.5u,0);
penpos60(hair,145); 
z60=(x0+stem,y$+0.090x_height);
z61=(x0+1.522stem,y$+0.387x_height);
z62=(x0+1.956stem,y$+0.324x_height);
z60'=(x0'+stem,y$+0.090x_height);
z61'=(x0'+1.522stem,y$+0.387x_height);
z62'=(x0'+1.956stem,y$+0.324x_height);
penpos60'(hair,145); 
filldraw (z60l{dir34}..z62'{up}..z61'{left}
..z60r{dir259}--z60l & cycle) reflectedabout ((x$,x_height),(x$,0));
enddef;


def cap_grave (suffix $) =
y0=0; 0.5[x0,x0']=x$-2u;
z0'=z0+(2.5u,0);
penpos60(hair,145); 
z60=(x0+stem,1.090x_height-x_height+y$);
z61=(x0+1.522stem,1.387x_height-x_height+y$);
z62=(x0+1.956stem,1.324x_height-x_height+y$);
z60'=(x0'+stem,1.090x_height-x_height+y$);
z61'=(x0'+1.522stem,1.387x_height-x_height+y$);
z62'=(x0'+1.956stem,1.324x_height-x_height+y$);
filldraw (z60l{dir34}..z62'{up}..z61'{left}
..z60r{dir259}--z60l & cycle) reflectedabout ((x$,x_height),(x$,0));
enddef;

picture last_char;