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
|
% This is UPPERIJ.MF
% Version 1.0b
% Date 8-APR-1992
%
% (c) 1991, 1992 by J"org Knappen. See fc.rme for copying conditions
% This file is part of the fc-package
% See fc.rme for more information
%
% J"org Knappen
% Institut f"ur Kernphysik
% Postfach 39 80
% D-W 6500 Mainz
% knappen@vkpmzd.kph.uni-mainz.de
% Contents:
%
% The following characters are generated without condition:
%
% I, J
%
% And the following on demand, i. e. if their code is known:
%
% I_dotu, I_tilde, I_umlaut, latin_Iota
%
% Higher versions of this file might include more characters.
cmchar "The letter I"; % cm
beginchar("I",max(6u#,4u#+cap_stem#),cap_height#,0);
italcorr cap_height#*slant-.25u#;
adjust_fit(cap_serif_fit#,cap_serif_fit#);
pickup tiny.nib; pos1(cap_stem,0); pos2(cap_stem,0);
lft x1l=lft x2l=hround(.5w-.5cap_stem); top y1=h; bot y2=0;
filldraw stroke z1e--z2e; % stem
if serifs or monospace: % Condition changed to make sstt font
dish_serif(1,2,a,1/3,1.05cap_jut,b,1/3,1.05cap_jut); % upper serif
dish_serif(2,1,c,1/3,1.05cap_jut,d,1/3,1.05cap_jut); fi % lower serif
picture savedpicture;
savedpicture:=currentpicture;
savedpoint:=x1;
math_fit(0,.5ic#); penlabels(1,2); endchar;
iff known I_umlaut:
cmchar "Capital letter I with trema";
numeric dot_diam#,dot_diam;
dot_diam#=max(dot_size#,cap_curve#);
beginchar(I_umlaut,max(6u#,4u#+cap_stem#),cap_height#+comma_depth#,0);
italcorr cap_height#*slant-.25u#;
adjust_fit(cap_serif_fit#,cap_serif_fit#);
dot_diam=max(tiny.breadth,hround(max(dot_size,cap_curve)-2stem_corr));
currentpicture:=savedpicture;
pickup tiny.nib; pos1(dot_diam,0); pos2(dot_diam,90);
pos3(dot_diam,0); penpos4(y2r-y2l,90);
if not monospace: x1=x2=w-x3=w-x4=good.x(.5w-1.75u);
else: x1=x2=w-x3=w-x4=good.x(.5w-u); fi
top y2r=h+1; y3=y4=y1;
if bot y2l<cap_height+o+slab: y2l:=min(y2r-eps,cap_height+o+slab+.5tiny); fi
y1=.5[y2l,y2r]; dot(1,2); % left dot
dot(3,4); % right dot
penlabels(1,2,3,4); endchar;
iff known I_tilde:
cmchar "Capital letter I with tilde";
beginchar(I_tilde,max(6u#,4u#+cap_stem#),cap_height#+comma_depth#,0);
italcorr cap_height#*slant-.25u#;
adjust_fit(cap_serif_fit#,cap_serif_fit#);
currentpicture:=savedpicture;
if serifs: numeric theta; theta=angle(1/6(6u-vair),1/4(h-cap_height));
pickup crisp.nib; numeric mid_width; mid_width=.4[vair,stem];
pos1(vair,theta+90); pos2(vair,theta+90);
pos3(vair,theta+90); pos4(vair,theta+90);
z2-z1=z4-z3=(mid_width-crisp)*dir theta;
if not monospace: lft x1r=hround 0;rt x4l=hround w;
else: lft x1r=w-rt x4l=hround u; fi
top y4r=h;
bot y1l=vround(bot y1l+min(2/3[cap_height,h],y3l-.25vair)-top y1r);
pair delta; ypart delta=3(y3l-y1l); delta=whatever*dir theta;
filldraw z1l..controls(z1l+delta)and(z3l-delta)..z3l..z4l
--z4r..controls(z4r-delta)and(z2r+delta)..z2r..z1r--cycle; % stroke
else: pickup fine.nib; pos1(vair,180); pos2(vair,90);
pos3(.5[vair,slab],90); pos4(vair,90); pos5(vair,180);
if not monospace: lft x1r=0;rt x5l=w; else: lft x1r=w-rt x5l=u; fi
x2-x1=x3-x2=x4-x3=x5-x4;
bot y1=bot y4l=vround(.75[cap_height,h]-vair);
top y2r=top y5=h; y3=.5[y2,y4];
filldraw stroke z1e{up}...z2e{right}..z3e..{right}z4e...{up}z5e; fi % stroke
penlabels(1,2,3,4,5); endchar;
iff known I_dotu:
cmchar "Capital letter I with dot below";
beginchar(I_dotu,max(6u#,4u#+cap_stem#),cap_height#,0.875desc_depth#);
italcorr cap_height#*slant-.25u#;
adjust_fit(cap_serif_fit#,cap_serif_fit#);
numeric dot_diam#; dot_diam#=max(dot_size#,cap_curve#);
define_whole_blacker_pixels(dot_diam);
currentpicture:=savedpicture;
pickup tiny.nib;
pos88(dot_diam,0); pos99(dot_diam,90);
x88=x99=good.x(savedpoint); bot y99l=-d-1;
if top y99r+oo>-slab: y99r:=max(y99l+eps,-oo-tiny-slab); fi
y88=.5[y99r,y99l];
dot(88,99);
penlabels(88,99); endchar;
numeric savedpoint;
savedpicture:=nullpicture;
iff known latin_Iota:
cmchar "Capital letter latin Iota"; % from cm J
beginchar(latin_Iota,9u#,cap_height#,0);
adjust_fit(0,cap_serif_fit#);
slantswitch; % mirror will reswitch the slant
pickup tiny.nib; pos1(cap_stem',0); pos2(cap_stem',0);
top y1=h; rt x1r=hround(w-2u); x2=x1; y2=.21h;
if serifs: pos3(vair,-90); pos4(cap_hair,-180);
pos5(flare+(cap_stem-stem),-180);
bot y3r=-o; x3=.5[x4,x2]; y5=1/6h; rt x5l=hround 2.75u; z5r=z4r;
filldraw stroke z1e--z2e&super_arc.e(2,3); % stem and arc
dish_serif(1,2,a,1/3,1.3cap_jut,b,1/3,.75cap_jut); % serif
pickup tiny.nib; bulb(3,4,5); % bulb
else: filldraw stroke z1e--z2e; % stem
pickup fine.nib; pos3(cap_stem',0); z3=z2;
pos4(flare,angle(6.5u,-h)); pos5(1.1flare,-100);
bot y4r=-o; x4r=.5[x5r,x3r]; lft x5r=hround.75u; bot y5r=vround.06h-o;
filldraw stroke z3e{down}....term.e(4,5,left,1,4); fi % arc and terminal
mirror(.5w);
math_fit(0,.5ic#-.5u#); penlabels(1,2,3,4,5); endchar;
cmchar "The letter J"; % cm
beginchar("J",9u#,cap_height#,0);
italcorr cap_height#*slant-cap_serif_fit#
+.75cap_jut#-2.5u#+min(.5cap_stem#,u#);
adjust_fit(0,cap_serif_fit#);
pickup tiny.nib; pos1(cap_stem',0); pos2(cap_stem',0);
top y1=h; rt x1r=hround(w-2u); x2=x1; y2=.21h;
if serifs: pos3(vair,-90); pos4(cap_hair,-180);
pos5(flare+(cap_stem-stem),-180);
bot y3r=-o; x3=.5[x4,x2]; y5=1/6h; rt x5l=hround 2.75u; z5r=z4r;
filldraw stroke z1e--z2e&super_arc.e(2,3); % stem and arc
dish_serif(1,2,a,1/3,1.3cap_jut,b,1/3,.75cap_jut); % serif
pickup tiny.nib; bulb(3,4,5); % bulb
else: filldraw stroke z1e--z2e; % stem
pickup fine.nib; pos3(cap_stem',0); z3=z2;
pos4(flare,angle(6.5u,-h)); pos5(1.1flare,-100);
bot y4r=-o; x4r=.5[x5r,x3r]; lft x5r=hround.75u; bot y5r=vround.06h-o;
filldraw stroke z3e{down}....term.e(4,5,left,1,4); fi % arc and terminal
math_fit(0,.5ic#-.5u#); penlabels(1,2,3,4,5); endchar;
endinput;
|