However, if a truetype font is available, but no corresponding Afm font metrics, the result will be rather disastrous: the application will assume that the font is available, but during printout, wine will have a problem as the corresponding afm file is not there. So, wine will attempts to embed (download) a bitmapped or a Type42 font into the generated postscript file, and the result will look rather poor. Thus, whatever you do, don't install truetype fonts without the corresponding afm metrics. Better leave the extra fonts away altogether.
offi2pdf:~> tar xfzv ttf2pt1-3.4.3.tgz
offi2pdf:~> cd ttf2pt1-3.4.3/
offi2pdf:~/ttf2pt1-3.4.3> make all
offi2pdf:~/ttf2pt1-3.4.3> su
root:/home/offi2pdf/ttf2pt1-3.4.3> make install
offi2pdf:~> cd fonts/ttf
offi2pdf:~/fonts/ttf> ~/office2pdf/util/toLower
offi2pdf:~/fonts/ttf> cd ..
offi2pdf:~/fonts> mkdir afm
offi2pdf:~/fonts> cd afm
offi2pdf:~/fonts/afm> ~/office2pdf/util/makeAfm
offi2pdf:~/fonts/afm> ~/office2pdf/util/makePpd -f /usr/share/wine/generic.ppd >~/.wine/generic.ppd
offi2pdf:~/fonts/afm> ~/office2pdf/util/makeFontSubTable >~/wininstall/fontsub.reg
offi2pdf:~/fonts/afm> wine regedit l:fontsub.reg
The loLower command above renames all files named
*.TTF to *.ttf, because ttf2pt1 apparently cannot
deal with *.TTFThe font subsitution table (two lasts steps) is due to a bug/feature in wine: additional fonts are only correctly recognized if they are substituted with themselves...
Note: For some reason, symbol fonts (such as symbol or wingdings) don't turn out right if they are in the fonts/ttf directory. Put these into ~/.wine/drive_c/windows/fonts instead, and generate no .afm.
Note2: Depending on the wine version, the .ppd file (needed for the makePpd command) may be in a different directory than /usr/share/wine/generic.ppd. Use dpkg -L wine | fgrep generic.ppd to find it.
[ppd]
"generic" = "/home/offi2pdf/.wine/generic.ppd"
...
; the TrueType font dirs you want to make accessible to wine
[FontDirs]
"dir1" = "/home/offi2pdf/fonts/ttf"
...
; List of all directories directly contain .AFM files
[afmdirs]
"1" = "/home/offi2pdf/fonts/afm"
Note: due to a wine bug, you need to indicate full path in these keys,
as environment variables are not understood here.Note2: The FontDirs and afmdirs sections may already contain numbered entries. If that is the case, add 1 to all existing numbers (i.e. 1 becomes 2, 2 becomes 3, etc), and put the new offi2pdf entry as 1.