Debian Codegraph @

texmf-dist/fonts/source/public/cm/csc.mf

raw
1 % THIS IS THE OFFICIAL COMPUTER MODERN SOURCE FILE csc.mf BY D E KNUTH.
2 % IT MUST NOT BE MODIFIED IN ANY WAY UNLESS THE FILE NAME IS CHANGED!
3
4 % Caps and Small Caps in Computer Modern Roman
5
6 font_coding_scheme:=if ligs=0: "TeX typewriter text"
7 else: "TeX text without f-ligatures" fi;
8 spanish_shriek=oct"016"; spanish_query=oct"017";
9
10 mode_setup; font_setup;
11 input romanu; % upper case (majuscules)
12 input greeku; % upper case greek letters
13 input romand; % numerals
14 input romanp; % ampersand, question marks, currency sign
15 input romspu; % uppercase specials (\AE, \OE, \O)
16 input punct; % punctuation symbols common to all roman and italic
17 input accent; % accents common to roman and italic text
18 input romsub; % substitutes for ligatures
19 if ligs>0: input comlig; fi % ligatures common with italic
20
21 ligtable "!": "`" =: spanish_shriek;
22 ligtable "?": "`" =: spanish_query;
23 font_slant slant; font_x_height x_height#;
24 if monospace: font_normal_space 9u#; % no stretching or shrinking
25 font_quad 18u#;
26 font_extra_space 9u#;
27 else: font_normal_space 6u#+2letter_fit#;
28 font_normal_stretch 3u#; font_normal_shrink 2u#;
29 font_quad 18u#+4letter_fit#;
30 font_extra_space 2u#;
31 k#:=-.5u#; kk#:=-1.5u#; kkk#:=-2u#; % three degrees of kerning
32 ligtable "P": "T": "Y": "a" kern kk#, "A" kern kk#;
33 ligtable "F": "V": "W": if serifs: "a" kern kkk#, "A" kern kkk#,
34 else: "a" kern kk#, "A" kern kk#, fi
35 "K": "X": "o" kern k#, "O" kern k#, "c" kern k#, "C" kern k#,
36 "g" kern k#, "G" kern k#, "q" kern k#, "Q" kern k#;
37 ligtable "O": "D": "x" kern k#, "X" kern k#, "w" kern k#, "W" kern k#,
38 "a" kern k#, "A" kern k#, "v" kern k#, "V" kern k#, "y" kern k#, "Y" kern k#;
39 ligtable "A": if serifs: "R": fi "c" kern k#, "C" kern k#,
40 "o" kern k#, "O" kern k#, "g" kern k#, "G" kern k#,
41 "u" kern k#, "U" kern k#, "q" kern k#, "Q" kern k#,
42 "L": "T" kern kk#, "t" kern kk#, "Y" kern kk#, "y" kern kk#,
43 "V" kern kkk#, "v" kern kkk#, "W" kern kkk#, "w" kern kkk#;
44 ligtable "I": "I" kern -k#; fi % Richard III
45 % ligature programs for |"-"|, |"`"|, and |"'"| are in the {\tt comlig} file
46
47 %%% fine lower
48 forsuffixes $= u, width_adj, cap_serif_fit, letter_fit,
49 body_height, cap_height, x_height, bar_height, comma_depth,
50 flare, cap_hair, stem, cap_stem, cap_curve, cap_ess,
51 cap_jut, beak_jut, beak, slab, cap_bar, cap_band, cap_notch_cut,
52 o, apex_o: $.#:=lower.$.#; endfor
53 fudge:=lower.fudge;
54 font_setup; % now try again with |lower| settings
55 extra_endchar:=extra_endchar&"charcode:=charcode+code_offset;";
56 code_offset:=ASCII"a" - ASCII"A";
57 input romanu; % majuscules (in lowercase positions)
58 code_offset:=-3;
59 input romspu; % \AE, \OE, \O\ (in positions of \ae, \oe, \o)
60 code_offset:=0;
61 input cscspu; % substitutes for the remaining characters of romspl
62 if not monospace:
63 k#:=-.5u#; kk#:=-1.5u#; kkk#:=-2u#; % three degrees of kerning
64 ligtable "p": "t": "y": "a" kern kk#;
65 ligtable "f": "v": "w": "a" kern if serifs: kkk# else: kk#\\fi,
66 "k": "x": "o" kern k#, "c" kern k#, "g" kern k#, "q" kern k#;
67 ligtable "o": "d": "x" kern k#, "w" kern k#, "a" kern k#,
68 "v" kern k#, "y" kern k#;
69 ligtable "a": if serifs: "r": fi "c" kern k#, "o" kern k#,
70 "g" kern k#, "u" kern k#, "q" kern k#,
71 "l": "'" kern kk#, "t" kern kk#, "y" kern kk#, "v" kern kkk#, "w" kern kkk#;
72 ligtable "i": "i" kern -k#; fi % skiing
73 bye.