Debian Codegraph @

texmf-dist/fonts/source/public/sansmathfonts/sans-roman.mf

raw
1 % Based on the Computer Modern source file roman.mf by D E Knuth.
2
3 % Edited by Ariel Barton to produce better sans serif symbols
4
5 % Date: 2013/03/22
6
7 % Currently, this file is used only to produce TFM files that are then
8 % turned into virtual fonts; it's not used for any Type 1 or bitmap
9 % fonts.
10
11 % The CM-style Roman family of fonts (by D. E. Knuth, 1979--1985)
12
13 if ligs>1: font_coding_scheme:="TeX text";
14 spanish_shriek=oct"074"; spanish_query=oct"076";
15 else: font_coding_scheme:=if ligs=0: "TeX typewriter text"
16 else: "TeX text without f-ligatures" fi;
17 spanish_shriek=oct"016"; spanish_query=oct"017"; fi
18
19 mode_setup; font_setup;
20
21 input sans-romanu; % upper case (majuscules) (serifed I)
22 input romanl; % lower case (minuscules)
23 input sans-greeku; % upper case Greek letters (serifed Pi, Xi)
24 input romand; % numerals
25 input romanp; % ampersand, question marks, currency sign
26 input romspl; % lowercase specials (dotless \i, ligature \ae, etc.)
27 input romspu; % uppercase specials (\AE, \OE, \O)
28 input punct; % punctuation symbols common to roman and italic text
29 input accent; % accents common to roman and italic text
30 if ligs>1: input romlig; fi % letter ligatures
31 if ligs>0: input comlig; fi % ligatures common with italic text
32 if ligs<=1: input romsub; fi % substitutes for ligatures
33
34 ligtable "!": "`" =: spanish_shriek;
35 ligtable "?": "`" =: spanish_query;
36 font_slant slant; font_x_height x_height#;
37 if monospace: font_normal_space 9u#; % no stretching or shrinking
38 font_quad 18u#;
39 font_extra_space 9u#;
40 else: font_normal_space 6u#+2letter_fit#;
41 font_normal_stretch 3u#; font_normal_shrink 2u#;
42 font_quad 18u#+4letter_fit#;
43 font_extra_space 2u#;
44 k#:=-.5u#; kk#:=-1.5u#; kkk#:=-2u#; % three degrees of kerning
45 ligtable "k": if serifs: "v": "a" kern -u#, fi\\"w": "e" kern k#,
46 "a" kern k#, "o" kern k#, "c" kern k#;
47 ligtable "P": "A" kern kk#,
48 "y": "o" kern k#, "e" kern k#, "a" kern k#, "." kern kk#, "," kern kk#;
49 ligtable "F": "V": "W": if serifs: "o" kern kk#, "e" kern kk#, "u" kern kk#,
50 "r" kern kk#, "a" kern kk#, "A" kern kkk#,
51 else: "o" kern k#, "e" kern k#, "u" kern k#,
52 "r" kern k#, "a" kern k#, "A" kern kk#, fi
53 "K": "X": "O" kern k#, "C" kern k#, "G" kern k#, "Q" kern k#;
54 ligtable "T": "y" kern if serifs: k# else: kk# fi,
55 "Y": "e" kern kk#, "o" kern kk#,
56 "r" kern kk#, "a" kern kk#, "A" kern kk#, "u" kern kk#;
57 ligtable "O": "D": "X" kern k#, "W" kern k#, "A" kern k#,
58 "V" kern k#, "Y" kern k#;
59 if serifs: ligtable "h": "m": "n":
60 "t" kern k#, "u" kern k#, "b" kern k#, "y" kern k#, "v" kern k#, "w" kern k#;
61 ligtable "c": "h" kern k#, "k" kern k#; fi
62 ligtable "o": "b": "p": "e" kern -k#, "o" kern -k#, "x" kern k#,
63 "d" kern -k#, "c" kern -k#, "q" kern -k#,
64 "a": if serifs: "v" kern k#, "j" kern u#, else: "r" kern k#, fi
65 "t": "y" kern k#,
66 "u": "w" kern k#;
67 ligtable "A": if serifs: "R": fi\\ "t" kern k#,
68 "C" kern k#, "O" kern k#, "G" kern k#, "U" kern k#, "Q" kern k#,
69 "L": "T" kern kk#, "Y" kern kk#, "V" kern kkk#, "W" kern kkk#;
70 ligtable "g": "j" kern -k#; % logjam
71 ligtable "I": "I" kern -k#; fi % Richard III
72 % there are ligature/kern programs for |"f"| in the {\tt romlig} file
73 % and for |"-"|, |"`"|, and |"'"| in the {\tt comlig} file
74 bye.
75