Debian Codegraph @

texmf-dist/fonts/source/public/amsfonts/cyrillic/cyrcsc.mf

raw
1 %% filename: cyrcsc.mf
2 %% version: 2.2
3 %% date: 1995/01/04
4 %%
5 %% American Mathematical Society
6 %% Technical Support
7 %% Publications Technical Group
8 %% 201 Charles Street
9 %% Providence, RI 02904
10 %% USA
11 %% tel: (401) 455-4080
12 %% (800) 321-4267 (USA and Canada only)
13 %% fax: (401) 331-3842
14 %% email: [email protected]
15 %%
16 %% Copyright 1995 Humanities and Arts Computing Center, University of
17 %% Washington.
18 %%
19 %% Unlimited copying and redistribution of this file are permitted as
20 %% long as this file is not modified. Modifications, and distribution
21 %% of modified versions, are permitted, but only if the resulting file
22 %% is renamed.
23 %%
24 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
25 % Driver for WNCYR Washington Computer Modern Cyrillic
26
27 font_coding_scheme:=if ligs=0: "TeX typewriter text"
28 else: "TeX text without f-ligatures" fi;
29 spanish_shriek=oct"016"; spanish_query=oct"017";
30
31 mode_setup; font_setup;
32
33 def cyrspread = 1.25dot_size enddef;
34 numeric cyrflwd; cyrflwd=2hair;
35 numeric cyrflht; cyrflht=4slab;
36
37 input cyrmax.mf; %input macro file
38 input cyrilu; % input common shapes
39 input cyrspu; % and special uppercase forms
40 input cyrpunc; % and puctuation etc.
41 input serb; % serbian & other chars
42 input serbspu;
43 %input cyrspl; % and lowercase specials
44
45
46 font_slant slant; font_x_height x_height#;
47 if monospace: font_normal_space 9u#; % no stretching or shrinking
48 font_quad 18u#;
49 font_extra_space 9u#;
50 else: font_normal_space 6u#+2letter_fit#;
51 font_normal_stretch 3u#; font_normal_shrink 2u#;
52 font_quad 18u#+4letter_fit#;
53 font_extra_space 2u#;
54 fi
55
56 %%% fine lower
57 def lowerfit = -.15u enddef;
58 def cyrspread = 1.125dot_size enddef;
59 forsuffixes $= u, width_adj, cap_serif_fit, letter_fit,
60 body_height, cap_height, x_height, bar_height, comma_depth,
61 flare, cap_hair, stem, cap_stem, cap_curve, cap_ess,
62 cap_jut, beak_jut, beak, slab, cap_bar, cap_band, cap_notch_cut,
63 o, apex_o: $.#:=lower.$.#; endfor
64 fudge:=lower.fudge;
65 font_setup; % now try again with |lower| settings
66 extra_endchar:=extra_endchar&"charcode:=charcode+code_offset";
67 code_offset:=ASCII"a" - ASCII"A";
68
69 % now input for lowercase of common shapes
70 input cyrilu; % majuscules (in lowercase positions)
71 input cyrspu; % 'special' uppers not special in small caps
72
73 code_offset:=8;
74 input serb; % serbs and other chars
75 input serbspu;
76
77 code_offset:=0;
78 cmchar "The letter smallcap dotless I";
79 beginchar(oct"75",14u#+width_adj#,cap_height#+3dot_size#,0);
80 italcorr cap_height#*slant-cap_serif_fit#+cap_jut#-2.5u#+min(.5cap_stem#,u#);
81 adjust_fit(cap_serif_fit#,cap_serif_fit#); h:=cap_height;
82 pickup tiny.nib; pos1(cap_stem,0); pos2(cap_stem,0);
83 pos3(cap_stem,0); pos4(cap_stem,0);
84 lft x1l=lft x2l=hround max(2u,3u-.5cap_stem); x3=x4=w-x1;
85 top y1=top y3=h; bot y2=bot y4=0;
86 filldraw stroke z1e--z2e; % left stem
87 filldraw stroke z3e--z4e; % right stem
88 if serifs: penpos5(.85cap_stem,90); penpos6(.85cap_stem,90);
89 else: penpos5(cap_stem,90); penpos6(cap_stem,90); fi
90 x5=x1r; x6=x3l; if serifs: y5=.1h; y6=.9h; else: bot y5l=0; top y6r=h; fi
91 fill stroke z5e--z6e; % bar
92 if serifs: numeric inner_jut;
93 if rt x1r+cap_jut+.5u+1<=lft x3l-cap_jut: inner_jut=cap_jut;
94 else: rt x1r+inner_jut+.5u+1=lft x3l-inner_jut; fi
95 dish_serif(1,2,a,1/3,cap_jut,b,1/3,inner_jut); % upper left serif
96 dish_serif(2,1,c,1/3,cap_jut,d,1/3,inner_jut); % lower left serif
97 dish_serif(3,4,e,1/3,inner_jut,f,1/3,cap_jut); % upper left serif
98 dish_serif(4,3,g,1/3,inner_jut,h,1/3,cap_jut); fi % lower left serif
99 x51=.5w; y51=h; h:=body_height+2dot_size; nucyrbrev(51,q);
100 math_fit(0,.5ic#); penlabels(1,2,3,4,5,6); endchar;
101
102
103
104 k#:=-.5u#; kk#:=-1.5u#; kkk#:=-2.5u#; % three degrees of kerning
105 ligtable "K": "H"=:"H", "h"=:"H",
106 oct"021": "H": oct"005" kern k#, oct"025" kern k#,
107 "F" kern k#, "O" kern k#, "S" kern k#;
108 ligtable "T": "S"=:"C", "s"=:"C",
109 oct"024": "G": "U": "A" kern kkk#,
110 "D" kern kkk#, "L" kern kk#, "C" kern kk#, "a" kern kk#,
111 "d" kern kk#, "f" kern kk#, "o" kern kk#,
112 oct"005" kern kk#, oct"015" kern kk#, oct"025" kern kk#,
113 oct"035" kern kk#, "." kern kk#, "," kern kkk#, ";" kern kk#;
114 ligtable "'": "'"=:oct"042";
115 ligtable "-": "-"=:oct"173";
116 ligtable oct"173": "-"=:oct"174";
117 ligtable "6": "h"=:"W", "H"=:"W";
118 ligtable "7": "h"=:"w";
119 ligtable "A": oct"000": oct"001": oct"136": oct"137": oct"024" kern kk#,
120 oct"006" kern kk#, oct"007" kern kk#, "Q" kern kk#, oct"137" kern kk#;
121 ligtable "C": "1"=:oct"007", "H"=:"Q", "h"=:"Q";
122 ligtable "D": "1"=:oct"006", "2"=:oct"002", "3"=:oct"026",
123 "J"=:oct"006", "j"=:oct"006";
124 ligtable "E": "0"=:oct"023", "1"=:oct"003", "2"=:oct"005";
125 ligtable "I": "0"=:oct"022", "1"=:oct"004";
126 ligtable "J": "1"=:oct"027", "2"=:oct"020";
127 ligtable "L": "1"=:oct"001", "J"=:oct"001", "j"=:oct"001";
128 ligtable "N": "0"=:oct"175", "1"=:oct"000", "J"=:oct"000", "j"=:oct"000";
129 ligtable "O": oct"003": "F": "O" kern -k#, "F" kern -k#, oct"005" kern -k#,
130 oct"025": "H" kern k#, "A" kern k#, "U" kern k#, oct"024" kern k#,
131 "T" kern k#;
132 ligtable "P": "1"=:oct"136", "2"=:oct"137";
133 ligtable "t": "s"=:"c",
134 "R": oct"034": "g": "u": oct"035" kern k#,
135 "a" kern k#, "d" kern k#, "f" kern k#,
136 "l" kern k#, "o" kern k#, oct"035" kern k#,
137 "." kern kk#, "," kern kk#, ";" kern kk#;
138 ligtable "S": "H"=:"X", "h"=:"X";
139 ligtable "X": "Q"=:"W", "q"=:"W", "C"=:"6", "c"=:"6";
140 ligtable "Y": "A"=:oct"027", "a"=:oct"027", "U"=:oct"020", "u"=:oct"020";
141 ligtable "Z": "1"=:oct"021", "H"=:oct"021", "h"=:oct"021";
142 ligtable "[": "["=:oct"074";
143 ligtable "]": "]"=:oct"076";
144 ligtable "`": "`"=:oct"134";
145 ligtable "e": "0"=:oct"033", "1"=:oct"013", "2"=:oct"015";
146 % following kerns seem not to actually work out
147 % "b": "o": "r": "f": "o" kern -k#, "f" kern -k#, "e" kern -k#,
148 % "c" kern -k#, "h" kern k#;
149 ligtable "c": "1"=:oct"017", "h"=:"q";
150 ligtable "d": "1"=:oct"016", "2"=:oct"012", "3"=:oct"036", "j"=:oct"016";
151 ligtable "i": "0"=:oct"032", "1"=:oct"014";
152 ligtable "j": "1"=:oct"037", "2"=:oct"030";
153 ligtable "k": "h"=:"h";
154 ligtable "l": "1"=:oct"011", "j"=:oct"011";
155 ligtable "n": "1"=:oct"010", "j"=:oct"010";
156 ligtable "p": "1"=:oct"176", "2"=:oct"177";
157 ligtable "x": "q"=:"w", "c"=:"7";
158 ligtable "y": "a"=:oct"037", "u"=:oct"030";
159 ligtable "z": "1"=:oct"031", "h"=:oct"031";
160 ligtable "s": "h"=:"x",
161 "m": "w": oct"012" kern -k#, oct"032" kern -k#, "c" kern -k#,
162 "g" kern -k#, "i" kern -k#, "k" kern -k#, "m" kern -k#,
163 "n" kern -k#, "p" kern -k#, "r" kern -k#, "v" kern -k#, "w" kern -k#,
164 "x" kern -k#, "y" kern -k#, oct"176" kern -k#, oct"177" kern -k#;
165
166
167 bye.