-
Notifications
You must be signed in to change notification settings - Fork 1
/
font.mf
53 lines (51 loc) · 3.34 KB
/
font.mf
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
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% MF Calport v1.4 %
% © 2019 by Marco Mueller %
% thanks to Linus Roemer, Alexis Reigel, Jeremy Gibbons %
% <http://www.metaflop.com> %
% licensed under gpl v3: www.gnu.org/licenses/ %
% %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% This program is free software: you can redistribute it and/or modify %
% it under the terms of the GNU General Public License as published %
% by the Free Software Foundation, either version 3 of the License, or %
% (at your option) any later version. %
% %
% This program is distributed in the hope that it will be useful, %
% but WITHOUT ANY WARRANTY; without even the implied warranty of %
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU %
% General Public License for more details. %
% %
% You should have received a copy of the GNU General Public License %
% along with this program. If not, see <http://www.gnu.org/licenses/>. %
% %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
font_size 10pt#; % the "design size" of this font @hidden
ht#:=7pt#; % height of characters @hidden
x_ht#:=4.5pt#; % x-height of characters $ 3 / 6
acc_ht#:=2.5pt#; % height of the accents $ 1 / 3
acc_depth#:=2.5pt#; % dept of the accents $ 1 / 3
desc_depth#:=2.5pt#; % depth of descenders $ -3 / -1
u#:=1.25pt#; % unit width $ 0.05 / 2
xgap#:=0.25pt#; % horizontal adjustment @hidden
s#:=0.2pt#; % extra space at the sides $ 0 / 0.5
px#:=0.5pt#; % horizontal thickness of pen $ 0.1 / 1.5
py#:=0.5pt#; % vertical pen thickness $ 0.1 / 1.5
prot:=0; % rotation angle of the pen $ 0 / 90
ptiny#:=.05*min(px#,py#); % tiny pen width for pen outline @hidden
o#:=.2*(px#*cosd(prot))++(py#*sind(prot)); % overshoot @hidden
slant:=0; % slanting amount $ -0.3 / 0.3
font_normal_space 3u#; % width of the space char @hidden
dnum:=0.7; % number of dots $ 0.15 / 1.5
drawingstyle:=1; % 1=line / 2=dots / 3=overdraw
penshape:=1; % 1=circle / 2=square / 3=razor / 4=triangle / 5=pentagon
sset:=3; % stylistic set 1=normal / 2= simplified / 3=monospace
input fontbase; % now generate the font
input glyphs_preview;
if (sset=1) or (sset=2):
input ligkerndef;
elseif sset=3:
fi
bye;