Debian Codegraph @

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

raw
1 % THIS IS THE OFFICIAL COMPUTER MODERN SOURCE FILE roman.mf BY D E KNUTH.
2 % IT MUST NOT BE MODIFIED IN ANY WAY UNLESS THE FILE NAME IS CHANGED!
3
4 % The Computer Modern Roman family of fonts (by D. E. Knuth, 1979--1985)
5
6 if ligs>1: font_coding_scheme:="TeX text";
7 spanish_shriek=oct"074"; spanish_query=oct"076";
8 else: font_coding_scheme:=if ligs=0: "TeX typewriter text"
9 else: "TeX text without f-ligatures" fi;
10 spanish_shriek=oct"016"; spanish_query=oct"017"; fi
11
12 mode_setup; font_setup;
13
14 input romanu; % upper case (majuscules)
15 input romanl; % lower case (minuscules)
16 input greeku; % upper case Greek letters
17 input romand; % numerals
18 input romanp; % ampersand, question marks, currency sign
19 input romspl; % lowercase specials (dotless \i, ligature \ae, etc.)
20 input romspu; % uppercase specials (\AE, \OE, \O)
21 input punct; % punctuation symbols common to roman and italic text
22 input accent; % accents common to roman and italic text
23 if ligs>1: input romlig; fi % letter ligatures
24 if ligs>0: input comlig; fi % ligatures common with italic text
25 if ligs<=1: input romsub; fi % substitutes for ligatures
26
27 ligtable "!": "`" =: spanish_shriek;
28 ligtable "?": "`" =: spanish_query;
29 font_slant slant; font_x_height x_height#;
30 if monospace: font_normal_space 9u#; % no stretching or shrinking
31 font_quad 18u#;
32 font_extra_space 9u#;
33 else: font_normal_space 6u#+2letter_fit#;
34 font_normal_stretch 3u#; font_normal_shrink 2u#;
35 font_quad 18u#+4letter_fit#;
36 font_extra_space 2u#;
37 k#:=-.5u#; kk#:=-1.5u#; kkk#:=-2u#; % three degrees of kerning
38 ligtable "k": if serifs: "v": "a" kern -u#, fi\\"w": "e" kern k#,
39 "a" kern k#, "o" kern k#, "c" kern k#;
40 ligtable "P": "A" kern kk#,
41 "y": "o" kern k#, "e" kern k#, "a" kern k#, "." kern kk#, "," kern kk#;
42 ligtable "F": "V": "W": if serifs: "o" kern kk#, "e" kern kk#, "u" kern kk#,
43 "r" kern kk#, "a" kern kk#, "A" kern kkk#,
44 else: "o" kern k#, "e" kern k#, "u" kern k#,
45 "r" kern k#, "a" kern k#, "A" kern kk#, fi
46 "K": "X": "O" kern k#, "C" kern k#, "G" kern k#, "Q" kern k#;
47 ligtable "T": "y" kern if serifs: k# else: kk# fi,
48 "Y": "e" kern kk#, "o" kern kk#,
49 "r" kern kk#, "a" kern kk#, "A" kern kk#, "u" kern kk#;
50 ligtable "O": "D": "X" kern k#, "W" kern k#, "A" kern k#,
51 "V" kern k#, "Y" kern k#;
52 if serifs: ligtable "h": "m": "n":
53 "t" kern k#, "u" kern k#, "b" kern k#, "y" kern k#, "v" kern k#, "w" kern k#;
54 ligtable "c": "h" kern k#, "k" kern k#; fi
55 ligtable "o": "b": "p": "e" kern -k#, "o" kern -k#, "x" kern k#,
56 "d" kern -k#, "c" kern -k#, "q" kern -k#,
57 "a": if serifs: "v" kern k#, "j" kern u#, else: "r" kern k#, fi
58 "t": "y" kern k#,
59 "u": "w" kern k#;
60 ligtable "A": if serifs: "R": fi\\ "t" kern k#,
61 "C" kern k#, "O" kern k#, "G" kern k#, "U" kern k#, "Q" kern k#,
62 "L": "T" kern kk#, "Y" kern kk#, "V" kern kkk#, "W" kern kkk#;
63 ligtable "g": "j" kern -k#; % logjam
64 ligtable "I": "I" kern -k#; fi % Richard III
65 % there are ligature/kern programs for |"f"| in the {\tt romlig} file
66 % and for |"-"|, |"`"|, and |"'"| in the {\tt comlig} file
67 bye.