Debian Codegraph @

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

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