Open Type Fonts (OTF) für LaTeX (Win/MiKTeX) lcdf-typetools?

Schriftbild, Absätze und Auflistungen einstellen


David
Forum-Newbie
Forum-Newbie
Beiträge: 2
Registriert: Fr 18. Dez 2009, 22:44

Open Type Fonts (OTF) für LaTeX (Win/MiKTeX) lcdf-typetools?

Beitrag von David »

Hallo,
ich benutze seit kurzem für mein Studium MiKTeX 2.8 und TeXnicCenter unter Win Vista/XP und bin recht zufrieden.
Ich habe keine *nix-Kenntnisse und plane auch nicht, mir solche in nächster Zeit anzueignen.

Ich würde gerne die Schriftart Adobe Garamond Pro auch in LaTeX verwenden (vorliegend als OTF; kam mit der Adobe CS4).

LaTeX will ich unbedingt verwenden, da ich BibLaTeX brauche (u.a. für MLA-Style). Die "einfache" Methode über XeTeX will ich daher nicht beschreiten.


Gefunden habe ich diese vielversprechende Anleitung:
http://members.fortunecity.com/odradek5 ... index.html

Die LCDF Typetool Win-Binaries hab' ich mir besorgt.
http://www.lcdf.org/type/

Nun habe ich aber einige grundlegende Probleme.

In der Anleitung von otftotfm finde ich
"Automatic mode, triggered by the -a/--automatic option, installs font metrics and encoding files where TeX can find them, and additionally installs a Type 1 font and mapping for dvips(1). This requires a TeX installation that follows the TeX Directory Structure standard (http://www.tug.org/tds/), such as most Unix TeX installations."

Ob meine Installation den TDS-Regeln folgt, weiß ich nicht.
Installiert habe ich ProTeXt, genauer gesagt MiKTeX 2.8, GS und TeXnicCenter (in e:/Programme/Tex/). Ich gehe mal davon aus, das MiKTeX die TDS-Regeln befolgt, nur hilft mir das nun auch nicht weiter.

Ich habe mal versuchsweise auf einem anderen Laufwerk in einem temporären Arbeitsverzeichnis (..\LaTeX\fonts\..) folgendes ausgeführt und gleich ein paar Fehlermeldungen erhalten:
F:\LaTeX\fonts\lcdf-typetools-w32\bin>otftotfm -a -e texnansx AGaramondPro-Regul
ar.otf -fpnum -fonum -fkern -fliga --altselector-char=« --force LY1--AGaramondPr
o-Regular
warning: kpathsea: configuration file texmf.cnf not found in these directories:
F:/LaTeX/fonts/lcdf-typetools-w32/bin;F:/LaTeX/fonts/lcdf-typetools-w32;F:/LaTeX
/fonts;F:/LaTeX/fonts/lcdf-typetools-w32/bin/share/texmf-local/web2c;F:/LaTeX/fo
nts/lcdf-typetools-w32/share/texmf-local/web2c;F:/LaTeX/fonts/share/texmf-local/
web2c;F:/LaTeX/fonts/lcdf-typetools-w32/bin/texmf-local/web2c;F:/LaTeX/fonts/lcd
f-typetools-w32/texmf-local/web2c;F:/LaTeX/fonts/texmf-local/web2c;F:/LaTeX/font
s/lcdf-typetools-w32/bin/share/texmf/web2c;F:/LaTeX/fonts/lcdf-typetools-w32/sha
re/texmf/web2c;F:/LaTeX/fonts/share/texmf/web2c;F:/LaTeX/fonts/lcdf-typetools-w3
2/bin/texmf/web2c;F:/LaTeX/fonts/lcdf-typetools-w32/texmf/web2c;F:/LaTeX/fonts/t
exmf/web2c.
otftotfm: c:/usr/local/share/lcdf-typetools/glyphlist.txt: No such file or direc
tory
otftotfm: c:/usr/local/share/lcdf-typetools/texglyphlist.txt: No such file or di
rectory
otftotfm: encoding 'texnansx' not found
Dort befindet sich natürlich keine TeX-Installation, das war einfach nur ein Trockentest.

Soweit ich verstanden habe, brauchen die LCDF-Tools Zugriff auf meine Tex-Installation. Wie ermögliche ich das? Wohin muß ich die hinschieben bzw. wie Teile ich dem Programm mit, wo es den Ordner findet?

David
Forum-Newbie
Forum-Newbie
Beiträge: 2
Registriert: Fr 18. Dez 2009, 22:44

Beitrag von David »

bin inzwischen schon etwas weitergekommen.

http://developer.berlios.de/project/sho ... e_id=12786

hier gibt es "scripts" für otftotfm. Ist einfach eine .bat mit diesem Inhalt:
@echo off

mkdir pfb

echo "Creating PostScript fonts ..."

for %%i in (otf/*.otf) do cfftot1    otf/%%i       pfb/%%~ni.pfb
for %%i in (otf/*.otf) do t1dotlessj pfb/%%~ni.pfb pfb/%%~niLCDFJ.pfb
Diese .bat kommt ins /bin/ verzeichnis der LCDF-tools, darin macht man ein Verzeichnis /OTF/ in das man die *.otf schiebt.

Nun hab ich schonmal .PFB für die einzelnen Schriften. Fehlt aber immernoch einiges.

Also zurück zu "otftotfm -a".
In der obigen Fehlermeldung sieht man ja, welche files fehlen und wo sie vermutet werden. Also einfach mal die files entsprechend entweder in C:\usr\... sowie ins \bin\ gelegt. Jetzt läuft er ohne meckern:
F:\Neuer Ordner\lcdf-typetools-w32\bin>otftotfm -a -e texnansx AGaramondPro-Regu
lar.otf
This is VPtoVF, Version 1.5 (MiKTeX 2.8)
'001 '004 '005 '006 '007 '010 '012 '013
'014 '016 '017 '020 '022 '023 '024 '025
'026 '027 '030 '031 '032 '033 '034 '035
'036 '037 '040 '041 '042 '043 '044 '045
'046 '047 '050 '051 '052 '053 '054 '055
'056 '057 '060 '061 '062 '063 '064 '065
'066 '067 '070 '071 '072 '073 '074 '075
'076 '077 '100 '101 '102 '103 '104 '105
'106 '107 '110 '111 '112 '113 '114 '115
'116 '117 '120 '121 '122 '123 '124 '125
'126 '127 '130 '131 '132 '133 '134 '135
'136 '137 '140 '141 '142 '143 '144 '145
'146 '147 '150 '151 '152 '153 '154 '155
'156 '157 '160 '161 '162 '163 '164 '165
'166 '167 '170 '171 '172 '173 '174 '175
'176 '177 '200 '201 '202 '203 '204 '205
'206 '207 '211 '212 '213 '215 '216 '217
'220 '223 '224 '225 '226 '227 '231 '232
'233 '235 '236 '237 '240 '241 '242 '243
'244 '245 '246 '247 '251 '252 '253 '254
'255 '256 '260 '261 '262 '263 '265 '266
'267 '271 '272 '273 '274 '275 '276 '277
'300 '301 '302 '303 '304 '305 '307 '310
'311 '312 '313 '314 '315 '316 '317 '320
'321 '322 '323 '324 '325 '326 '327 '331
'332 '333 '334 '335 '336 '340 '341 '342
'343 '344 '345 '347 '350 '351 '352 '353
'354 '355 '356 '357 '360 '361 '362 '363
'364 '365 '366 '367 '371 '372 '373 '374
'375 '376 '377.
I had to round some heights by 0000016 units.
I had to round some depths by 0000006 units.
This is PLtoTF, Version 3.5 (MiKTeX 2.8)
'001 '004 '005 '006 '007 '010 '013 '014
'016 '017 '020 '022 '023 '024 '025 '026
'027 '030 '031 '032 '033 '034 '035 '036
'037 '040 '041 '042 '043 '044 '045 '046
'047 '050 '051 '052 '053 '054 '055 '056
'057 '060 '061 '062 '063 '064 '065 '066
'067 '070 '071 '072 '073 '074 '075 '076
'077 '100 '101 '102 '103 '104 '105 '106
'107 '110 '111 '112 '113 '114 '115 '116
'117 '120 '121 '122 '123 '124 '125 '126
'127 '130 '131 '132 '133 '134 '135 '136
'137 '140 '141 '142 '143 '144 '145 '146
'147 '150 '151 '152 '153 '154 '155 '156
'157 '160 '161 '162 '163 '164 '165 '166
'167 '170 '171 '172 '173 '174 '175 '176
'177 '200 '201 '202 '203 '204 '205 '206
'207 '211 '212 '213 '215 '216 '217 '220
'223 '224 '225 '226 '227 '231 '232 '233
'235 '236 '237 '240 '241 '242 '243 '244
'245 '246 '247 '251 '252 '253 '254 '255
'256 '260 '261 '262 '263 '265 '266 '267
'271 '272 '273 '274 '275 '276 '277 '300
'301 '302 '303 '304 '305 '307 '310 '311
'312 '313 '314 '315 '316 '317 '320 '321
'322 '323 '324 '325 '326 '327 '331 '332
'333 '334 '335 '336 '340 '341 '342 '343
'344 '345 '347 '350 '351 '352 '353 '354
'355 '356 '357 '360 '361 '362 '363 '364
'365 '366 '367 '371 '372 '373 '374 '375
'376 '377.
I had to round some heights by 0000016 units.
I had to round some depths by 0000006 units.
cfftot1: glyph 'A': warning: complex flex hint replaced with curves
cfftot1: (This Type 2 format font contains flex hints prohibited by Type 1.
cfftot1: I've safely replaced them with ordinary curves.)
ABER: weiter passiert nichts. Keine Files, nirgendwo. Frustrierend, dieser Blindflug.

Also: windowssuche bemüht. Entstanden sind die Files tatsächlich, allerdings im Benutzerverzeichnis von meiner texlive2009-installation. Okay...???

edit: Ach, alles klar. Der verwendet einfach die TEXMF-Umgebungsvariable.
edit2: Die ich gar nicht gesetzt habe. Ähä.

Antworten