summaryrefslogtreecommitdiff
path: root/fonts/icelandic/MF/itextit.mf
blob: 15f787ea5933af191425e4384d4d42efc04601e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
% This is TEXTIT.MF in text format, as of May 5, 1986.
% The Computer Modern Text Italic family (by D. E. Knuth, 1979--1985)
% Icelandic version 11. Jan. 1987.

mode_setup; font_setup;

input itall;  % lower case (minuscules)
input iromitl; % Icelandic lower case
if ligs>1: font_coding_scheme:="TeX text";
  scand_lower_o=oct"074"; scand_cap_o=oct"076";
else: font_coding_scheme:=if ligs=0: "TeX typewriter text"
  else: "TeX text without f-ligatures" fi;
 fi
input iitalsp;  % lowercase specials (dotless \i, ligature \ae, etc.)

font_slant slant; font_x_height x_height#;
if monospace: font_normal_space 9u#; % no stretching or shrinking
 font_quad 18u#;
 font_extra_space 9u#;
 letter_fit#:=letter_fit:=0;
else: font_normal_space 6u#+2letter_fit#;
 font_normal_stretch 3u#; font_normal_shrink 2u#;
 font_quad 18u#+4letter_fit#;
 font_extra_space 2u#; fi

input romanu;  % upper case (majuscules)
input greeku;  % upper case greek letters
input itald;  % numerals
input italp;  % ampersand, question marks, currency sign
input iromu;  % Icelandic uppercase (\AE, THORN, ETH)
input iromspu; % Scandinavian \O
input ipunct;  % punctuation symbols common to roman and italic text
input iaccent;  % accents common to roman and italic text
if ligs>0: input icomlig; fi  % ligatures common with roman text
if ligs<=1: input iromsub; fi  % substitutes for ligatures

% Special Icelandic ligtable
ligtable "`": "`"=:oct"134";
ligtable "'": "'"=:oct"042", "?" kern 2u#, "!" kern 2u#,
"a"=:oct"013",
"e"=:oct"014",
"i"=:oct"015",
"o"=:oct"016",
"u"=:oct"017",
"y"=:oct"031",
"d"=:oct"037",
"t"=:oct"034",
"T"=:oct"036",
"D"=:oct"040";
ligtable oct"042": "o"=:oct"033",
"x"=:oct"032";


if not monospace:
 k#:=-.5u#; kk#:=-1.5u#; kkk#:=-2u#; % three degrees of kerning
 ligtable "d": "w": "l": "l" kern +u#;
 ligtable "F": "V": "o" kern kk#, "e" kern kk#,
   "u" kern kk#, "r" kern kk#, "a" kern kk#, "A" kern kkk#,
  "K": "X": "O" kern k#, "C" kern k#, "G" kern k#, "Q" kern k#;
 ligtable "T": "y" kern kk#,
  "Y": "e" kern kk#, "o" kern kk#, "r" kern kk#, "a" kern kk#, "u" kern kk#,
  "P": "W": "A" kern kk#;
 ligtable "O": "D": "X" kern k#, "W" kern k#, "A" kern k#,
   "V" kern k#, "Y" kern k#;
 ligtable "A": "R": "n" kern k#, "l" kern k#, "r" kern k#, "u" kern k#,
   "m" kern k#, "t" kern k#, "i" kern k#, "C" kern k#, "O" kern k#, "G" kern k#,
   "h" kern k#, "b" kern k#, "U" kern k#, "k" kern k#, "v" kern k#, "w" kern k#,
   "Q" kern k#, "L": "T" kern kk#, "Y" kern kk#, "V" kern kkk#, "W" kern kkk#,
  "b": "c": "e": "o": "p": "r": "e" kern -u#, "a" kern -u#, "o" kern -u#,
   "d" kern -u#, "c" kern -u#, "g" kern -u#, "q" kern -u#;
 ligtable "n": "'" kern kkk#; fi
% and for |"-"|, |"`"|, and |"'"| in the {\tt comlig} file
bye.