Debian Codegraph @

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

raw
1 %% filename: cyrfont.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
35 numeric cyrflwd; cyrflwd=2hair;
36 numeric cyrflht; if (designsize < 8pt): cyrflht=2slab; else: cyrflht=4slab; fi
37
38 input cyrmax.mf; %input macro file
39 input cyrilu; % input common shapes
40 input cyrspu; % and special uppercase forms
41 input cyrpunc; % and puctuation etc.
42 input serb; % serbian & other chars
43 input serbspu;
44 input cyrspl; % and lowercase specials
45
46
47 font_slant slant; font_x_height x_height#;
48 if monospace: font_normal_space 9u#; % no stretching or shrinking
49 font_quad 18u#;
50 font_extra_space 9u#;
51 else: font_normal_space 6u#+2letter_fit#;
52 font_normal_stretch 3u#; font_normal_shrink 2u#;
53 font_quad 18u#+4letter_fit#;
54 font_extra_space 2u#;
55 fi
56
57 %%% fine lower
58 def lowerfit = -.15u enddef;
59 def cyrspread = 1.125dot_size enddef;
60 forsuffixes $= u, width_adj, cap_serif_fit, letter_fit,
61 body_height, cap_height, x_height, bar_height, comma_depth,
62 flare, cap_hair, stem, cap_stem, cap_curve, cap_ess,
63 cap_jut, beak_jut, beak, slab, cap_bar, cap_band, cap_notch_cut,
64 o, apex_o: $.#:=lower.$.#; endfor
65 fudge:=lower.fudge;
66 font_setup; % now try again with |lower| settings
67 extra_endchar:=extra_endchar&"charcode:=charcode+code_offset";
68 code_offset:=ASCII"a" - ASCII"A";
69 numeric cyrflwd; cyrflwd=2hair;
70 numeric cyrflht; cyrflht=4slab;
71
72 % now input for lowercase of common shapes
73 input cyrilu; % majuscules (in lowercase positions)
74
75 code_offset:=8;
76 input serb; % serbs and other chars
77
78 k#:=-.5u#; kk#:=-1.5u#; kkk#:=-2.5u#; % three degrees of kerning
79 ligtable "K": "H"=:"H", "h"=:"H",
80 oct"021": "H": oct"005" kern k#, oct"025" kern k#,
81 "F" kern k#, "O" kern k#, "S" kern k#;
82 ligtable "T": "S"=:"C", "s"=:"C",
83 oct"024": "G": "U": "A" kern kkk#,
84 "D" kern kkk#, "L" kern kk#, "C" kern kk#, "a" kern kk#,
85 "d" kern kk#, "e" kern kk#, "f" kern kk#, "o" kern kk#,
86 oct"005" kern kk#, oct"015" kern kk#, oct"025" kern kk#,
87 oct"035" kern kk#, "." kern kk#, "," kern kk#, ";" kern kk#;
88 ligtable "'": "'"=:oct"042";
89 ligtable "-": "-"=:oct"173";
90 ligtable oct"173": "-"=:oct"174";
91 ligtable "6": "h"=:"W", "H"=:"W";
92 ligtable "7": "h"=:"w";
93 ligtable "A": oct"000": oct"001": oct"136": oct"137": oct"024" kern kk#,
94 oct"006" kern kk#, oct"007" kern kk#, "Q" kern kk#, oct"137" kern kk#;
95 ligtable "C": "1"=:oct"007", "H"=:"Q", "h"=:"Q";
96 ligtable "D": "1"=:oct"006", "2"=:oct"002", "3"=:oct"026",
97 "J"=:oct"006", "j"=:oct"006";
98 ligtable "E": "0"=:oct"023", "1"=:oct"003", "2"=:oct"005";
99 ligtable "I": "0"=:oct"022", "1"=:oct"004";
100 ligtable "J": "1"=:oct"027", "2"=:oct"020";
101 ligtable "L": "1"=:oct"001", "J"=:oct"001", "j"=:oct"001";
102 ligtable "N": "0"=:oct"175", "1"=:oct"000", "J"=:oct"000", "j"=:oct"000";
103 ligtable "O": oct"003": "F": "O" kern -k#, "F" kern -k#, oct"005" kern -k#,
104 oct"025": "H" kern k#, "A" kern k#, "U" kern k#, oct"024" kern k#,
105 "T" kern k#;
106 ligtable "P": "1"=:oct"136", "2"=:oct"137";
107 ligtable "t": "s"=:"c",
108 "R": oct"005" kern k#, oct"025" kern k#,
109 oct"034": "g": "u": oct"035" kern k#,
110 "a" kern k#, "d" kern k#, "e" kern k#, "f" kern k#,
111 "l" kern k#, "o" kern k#, "s" kern k#, oct"015" kern k#,
112 oct"035" kern k#, "." kern kk#, "," kern kk#, ";" kern kk#;
113
114 ligtable "S": "H"=:"X", "h"=:"X";
115 ligtable "X": "Q"=:"W", "q"=:"W", "C"=:"6", "c"=:"6";
116 ligtable "Y": "A"=:oct"027", "a"=:oct"027", "U"=:oct"020", "u"=:oct"020";
117 ligtable "Z": "1"=:oct"021", "H"=:oct"021", "h"=:oct"021";
118 ligtable "[": "["=:oct"074";
119 ligtable "]": "]"=:oct"076";
120 ligtable "`": "`"=:oct"134";
121 ligtable "e": "0"=:oct"033", "1"=:oct"013", "2"=:oct"015",
122 "b": "o": "r": "f": "h" kern k#;
123 % "b": "o": "r": "f": "o" kern -k#, "f" kern -k#, "e" kern -k#, "c" kern -k#,
124 ligtable "c": "1"=:oct"017", "h"=:"q";
125 ligtable "d": "1"=:oct"016", "2"=:oct"012", "3"=:oct"036", "j"=:oct"016";
126 ligtable "i": "0"=:oct"032", "1"=:oct"014";
127 ligtable "j": "1"=:oct"037", "2"=:oct"030";
128 ligtable "k": "h"=:"h";
129 ligtable "l": "1"=:oct"011", "j"=:oct"011";
130 ligtable "n": "1"=:oct"010", "j"=:oct"010";
131 ligtable "p": "1"=:oct"176", "2"=:oct"177";
132 ligtable "x": "q"=:"w", "c"=:"7";
133 ligtable "y": "a"=:oct"037", "u"=:oct"030";
134 ligtable "z": "1"=:oct"031", "h"=:oct"031";
135 ligtable "s": "h"=:"x",
136 "m": "w": oct"012" kern -k#, oct"032" kern -k#, "c" kern -k#,
137 "g" kern -k#, "i" kern -k#, "k" kern -k#, "m" kern -k#,
138 "n" kern -k#, "p" kern -k#, "r" kern -k#, "v" kern -k#, "w" kern -k#,
139 "x" kern -k#, "y" kern -k#, oct"176" kern -k#, oct"177" kern -k#;
140
141 bye.