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
|
EXAMPLES 2.9.0 92/07/06 -- random examples of mff use
mff ma55a5 ma55a7 ma55a10 ma56a5 ma56a7 ma56a10 ma75a5 ma75a7 ma75a10
mff ma{55,56,75}a{5,7,10}
This creates a simple family of 9 fonts. (The second line is equivalent
to the first if your command shell has C-shell's brace notation.)
mff -S -m0,h,1,2,3,4,5 cmr10 cmmi10 cmsy10
Using mff to create non-"mffified" fonts.
mff ma{3,5,7}{5,6}a18 && testfont \\text ma{3,5,7}{5,6}a18
I used commands like this when designing Malvern -- after proofing a new
glyph, I would try it out in different weights and styles. testfont is
a shellscript that runs TeX on testfont.tex. The && ensures that if one
of the fonts cannot be created, testfont is not invoked.
mff -f ditko dk65s72 dk35s72 && tex ditko.tex
(ditko.tex produces the logo that the fonts were created for.)
grep '^ma' somedoc.fonts | ( cd ~/mf/Malvern; mff -vf - )
somedoc.fonts is a file with the names of fonts used by somedoc.tex, one
per line. This command finds a list of the Malvern fonts and invokes
mff to create them. The file could be created by using TeX code along
these lines:
\newwrite\fontlistfile \openout\fontlistfile=\jobname.fonts
\def\ldfont#1#2%
{%
\write\fontlistfile{#2}%
\def\subfont{\font#1=cmr10 }%
\font#1=#2\relax
}
\ldfont is used instead of \font (either immediately or through
some sort of auto-loading system). If the font is unavailable the
user can type "i\subfont" to use cmr10 instead for this run.
mff -d300 -zCanonCX gray300 -d118 -zbitgraph gray118
I use this to create "gray" fonts for viewing proofs using GFtoDVI.
mff -vf-
I sometimes run this in an X window when I am TeX'ing a document
with lots of Malvern in it after I've rm'd all the font files.
Whenever I get a "missing font" error message I simply stuff the
name of the font in the mff window and i\subfont into the TeX
window. Next TeX run the font is available. (The -v is so that the
#{{{...#}}} lines tell me when it has finished.)
|