summaryrefslogtreecommitdiff
path: root/fonts/eiad/source/gaec7cb.mf
blob: f2ceb2d3d17062213938641368f5818ebe34b3e5 (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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
%% This file is public domain.
%% Originally written 1998, Ivan A Derzhanski.
%% Notice added by Clea F. Rees 2009/01/06.
%% 
% gaem7mb.mf
% Irish Caps and Small Caps: Driver File

spanish_shriek=oct"016"; spanish_query=oct"017";
cap_asc_height#:=1.15cap_height#;
cap_height#:=max(.85cap_height#,45/38x_height#);
old_asc_height#:=asc_height#;
asc_height#:=max(.85asc_height#,44/38x_height#);
lower.cap_asc_height#:=cap_asc_height#*lower.cap_height#/x_height#;
serif_drop#:=max(0,6serif_drop#);

mode_setup; font_setup;
define_whole_vertical_pixels(cap_asc_height,old_asc_height);

guta_offset := 0;
input eira;  % diacritics and macros
input eiru;  % upper case (majuscules)
input romand;  % numerals
input italp;  % ampersand, question marks, currency sign
input punct;  % punctuation symbols common to roman and italic text
{{interim ligs:=0; input accent;}}; % accents common to roman and italic text
if ligs>0:
  underbar = ASCII "_"; input comlig; fi  % ligatures common with italic text
input romsub;  % substitutes for ligatures

%%% fine lower
forsuffixes $= u, width_adj, cap_serif_fit, letter_fit,
 body_height, cap_asc_height, cap_height, x_height, bar_height,
 comma_depth, flare, cap_hair, stem, cap_stem, cap_curve, cap_ess,
 cap_jut, beak_jut, beak, slab, cap_bar, cap_band, cap_notch_cut,
 o, apex_o:  $.#:=lower.$.#; endfor
fudge:=lower.fudge;
font_setup; % now try again with |lower| settings
extra_endchar:=extra_endchar&"charcode:=charcode+code_offset";
code_offset:=ASCII"a" - ASCII"A"; guta_offset:=8;
input eiru;  % majuscules (in lowercase positions)

ligtable "!": "`" =: spanish_shriek;
ligtable "?": "`" =: spanish_query;
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#;
else: font_normal_space 6u#+2letter_fit#;
 font_normal_stretch 3u#; font_normal_shrink 2u#;
 font_quad 18u#+4letter_fit#;
 font_extra_space 2u#;
% k#:=-.5u#; kk#:=-1.5u#; kkk#:=-2u#; % three degrees of kerning
fi

ligtable "7": "`" =: agus_lig;
ligtable "a": "/" =: ailm_fada;
ligtable "b": "h" =: beith_h;
ligtable "c": "h" =: coll_h;
ligtable "d": "h" =: dair_h;
ligtable "e": "/" =: eabhadh_fada;
ligtable "f": "h" =: fearn_h;
ligtable "g": "h" =: gort_h;
ligtable "i": "/" =: iodha_fada;
ligtable "m": "h" =: muin_h;
ligtable "o": "/" =: oir_fada;
ligtable "p": "h" =: peith_bhog_h;
ligtable "s": "h" =: sail_h;
ligtable "t": "h" =: teine_h;
ligtable "u": "/" =: uwr_fada;

ligtable "A": "/" =: Ailm_fada;
ligtable "B": "h" =: Beith_h, "H" =: Beith_h;
ligtable "C": "h" =: Coll_h, "H" =: Coll_h;
ligtable "D": "h" =: Dair_h, "H" =: Dair_h;
ligtable "E": "/" =: Eabhadh_fada;
ligtable "F": "h" =: Fearn_h, "H" =: Fearn_h;
ligtable "G": "h" =: Gort_h, "H" =: Gort_h;
ligtable "I": "/" =: Iodha_fada;
ligtable "M": "h" =: Muin_h, "H" =: Muin_h;
ligtable "O": "/" =: Oir_fada;
ligtable "S": "h" =: Sail_h, "H" =: Sail_h;
ligtable "T": "h" =: Teine_h, "H" =: Teine_h;
ligtable "U": "/" =: Uwr_fada;

 % there are ligature/kern programs
 % for |"-"|, |"`"|, and |"'"| in the {\tt comlig} file
bye.