summaryrefslogtreecommitdiff
path: root/fonts/duerer/cdsl10.mf
blob: c91949cd89bccad6fb03c408ecd54c234f7f45f9 (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
%% This file is public domain.
%% Originally written 1990, Alan Hoenig.
%% Notice added by Clea F. Rees 2010/12/13 following correspondence between Alan Hoenig and Karl Berry.

% This is CDR10.MF, Computer Durer Roman at 10 point design size.
%  Parameters from CMR10.MF are used as much as possible.
if unknown cmbase: input cmbase fi
 
font_identifier:="CDR"; font_size 10pt#; %%
 
u#:=20/36pt#;      % unit width
hstretch:=1;       % horizontal stretching factors; in lieu of u
vstretch:=1;       % vertical stretching factor
width_adj#:=0pt#;    % width adjustment for certain characters
serif_fit#:=0pt#;    % extra sidebar near lowercase serifs
cap_serif_fit#:=5/36pt#;  % extra sidebar near uppercase serifs
letter_fit#:=0pt#;    % extra space added to all sidebars
 
body_height#:=270/36pt#;  % height of tallest characters
asc_height#:=250/36pt#;    % height of lowercase ascenders
cap_height#:=246/36pt#;    % height of caps
fig_height#:=232/36pt#;    % height of numerals
x_height#:=155/36pt#;    % height of lowercase without ascenders
bar_height#:=87/36pt#;
math_axis#:=90/36pt#;    % axis of symmetry for math symbols
bar_height#:=87/36pt#;    % height of crossbar in lowercase e
comma_depth#:=70/36pt#;    % depth of comma below baseline
desc_depth#:=70/36pt#;    % depth of lowercase descenders
 
% Durer's letters are based on units derived from the side of a square.
side#:=cap_height#;
thickfudge:=1/9; thinfudge:=1/3;
thick#:=thickfudge*side#;    % thickness of all thick limbs in Roman font
thin#:=thinfudge*thick#;     % thinness of all thin limbs
eta:=2-sqrt2;          % darkness for serifs; $\eta \approx 0.58$
serif_darkness:=eta;
 
crisp#:=0pt#;      % diameter of serif corners
tiny#:=0pt#;      %% diameter of rounded corners
fine#:=7/36pt#;      % diameter of sharply rounded corners
rule_thickness#:=.4pt#;    % thickness of lines in math symbols
 
cap_stem#:=thick#; % thickness of majuscule stems
stem#:=thick#;
 
dish#:=1/36pt#;      % amount erased at top or bottom of serifs
bracket#:=thick#;    %% vertical distance from serif base to tangent
jut#:=thick#;      %% protrusion of lowercase serifs
cap_jut#:=thick#;    %% protrusion of uppercase serifs
beak_jut#:=10/36pt#;    % horizontal protrusion of beak serifs
slab#:=eps*1pt#;    %% serif and arm thickness
dslab#=0;        %%slab value used in Durer fonts
 
hair#:=vair#:=thin#; 
 
o#:=8/36pt#;      % amount of overshoot for curves
apex_o#:=thin#;    % amount of overshoot for diagonal junctions
apex_corr#=0pt#;
 
slant:=1/6;      % tilt ratio $(\Delta x/\Delta y)$
fudge:=1;      % factor applied to weights of heavy characters
superness:=1/sqrt2;    % parameter for superellipses
superpull:=0;      % extra openness inside bowls
beak_darkness:=11/30;    % fraction of triangle inside beak serifs
 
boolean informal;
informal:=false;           % generating informal font?
serifs:=true;      % should serifs and bulbs be attached?
monospace:=false;    % should all characters have the same width?
 
boolean whole_font;  % try generating a complete font?
whole_font:=false;
 
generate dtitle      %% switch to the driver file---Durer title