Individuelle Schriften mit LaTeX

„Adding fonts is a pain, but is fairly straight forward.“ – Aaron Jackson

Dem ersten Teil des Satzes kann ich aus ganzem Herzen zustimmen. Ich habe LaTeX nur eine einzige Schriftfamilie hinzugefügt, und es hat mich buchstäblich Wochen gekostet. Mittlerweile existieren Anleitungen, die den Prozess sehr klar und strukturiert beschreiben. Die mir zur Verfügung stehende Anleitung sah dagegen so aus:

On the command line in the working directory I type: t1unmac -r AGarBol/rsrc padb8a.pfb t1unmac -r AGarBolIta/rsrc padbi8a.pfb t1unmac -r AGarIta/rsrc padri8a.pfb t1unmac -r AGarReg/rsrc padr8a.pfb cp AGarBol.AFM padb8a.afm cp AGarBolIta.AFM padbi8a.afm cp AGarIta.AFM padri8a.afm cp AGarReg.AFM padr8a.afm So now I have all the pfb and afm files in the same directory with their proper names. Now its time to make the other files. I do this by making and running the following pad-drv.tex file: \input fontinst.sty \needsfontinstversion{1.926} \recordtransforms{pad-rec.tex} \latinfamily{pad}{} \endrecordtransforms \bye Then process it thusly: tex pad-drv.tex Then I run the following commands to make the vf and tmf files: apply pltotf *.pl apply vptovf *.vpl I now make the map file using pad-map.tex \input finstmsc.sty \resetstr{PSfontsuffix}{.pfb} \adddriver{dvips}{pad.map} \input pad-rec.tex \donedrivers \bye Then process it thusly: tex pad-map.tex Lastly, I make the garamond.sty file: \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{garamond}[2002/04/17 v1.0 Adobe Garamond with PS fonts] \RequirePackage[T1]{fontenc} \RequirePackage{textcomp} \renewcommand*{\rmdefault}{pad} \renewcommand*{\sfdefault}{phv} \renewcommand*{\ttdefault}{pcr} \endinput

Ich bin damals schon an der Extraktion von Informationen aus meinen modernen OpenType-Schriften mit otftotfm gescheitert („For any OpenType font installation into TEX, the vital tool is otftotfm“) und musste die Hilfe eines freundlichen Menschen in Anspruch nehmen, um PFB-Dateien zu generieren. Immerhin habe ich es geschafft, die Schriftenkarte (pad.map) selbst anzulegen.

Anschließend musste ich nur noch die Dateien im lokalen texmf-Baum ablegen (~/texmf/ mit den Unterverzeichnissen dvips/config, tex/latex/sty und fonts) und die neuen Dateien bzw. die neue Schrift bekanntgeben:

texhash updmap --enable MixedMap pad.map

Kurz: Es ist sehr angenehm, die eigene Lieblingsschrift mit LaTeX verwenden zu können. Solange ich allerdings LaTeX 2 verwende, werde ich meine Lieblingsschrift nicht mehr wechseln.