Re: [NTG-context] Going crazy with font conversion (diaeresis)!
Hi Adam,
Adam Lindsay
Okay, it was trickier than I thought. But I used the .afm obtained from FontForge conversion, and discarded the .pfb.
afm2pl -p `kpsewhich texnansi.enc` HelveticaNeue.afm pltotf HelveticaNeue
Because I'm impatient, and wanted a quick test: \loadmapline[+HelveticaNeue HelveticaNeue " TeXnANSIEncoding ReEncodeFont "
Your result looks promising - but duplicating your way showed me my command line limits: $ afm2pl -p `kpsewhich texnansi.enc` HelveticaNeue.afm afm2pl: fatal: default.lig not found. $ pltotf HelveticaNeue pltotf: HelveticaNeue.pl: No such file or directory As I have never used afm2pl or pltotf the usage above is praobably wrong. Or was my Fontforge export bad? (When I open the AFM exported by FontForge there are no entries for KerningPairs ...) And looking at your test file: where are your ttf and other files in this situation? Steffen
On 22 Mar 2005, at 16:14, Steffen Wolfrum wrote:
Your result looks promising - but duplicating your way showed me my command line limits:
$ afm2pl -p `kpsewhich texnansi.enc` HelveticaNeue.afm afm2pl: fatal: default.lig not found.
Yeah, Gerben doesn't include that file that afm2pl expects. A quick google revealed: http://www.tug.org/ftp/texlive/Contents/testinstalled/texmf/fonts/lig/ afm2pl/default.lig ...which I copied to the working directory. It should be included in gwTeX. Running the command above should do it.
$ pltotf HelveticaNeue pltotf: HelveticaNeue.pl: No such file or directory
The fatal error above didn't generate a .pl file, so the next command wasn't able to use it.
As I have never used afm2pl or pltotf the usage above is praobably wrong. Or was my Fontforge export bad?
And looking at your test file: where are your ttf and other files in this situation?
All in the working directory. I could then rename, put them in the tex/fonts/ tree, and rehash, but that's it down to the essence. Here's another goodie: The attached dumpafm.pe uses fontforge to write out afms from a given dfont (or other multi-font) file. So, for example: /usr/local/bin/fontforge -script dumpafm.pe /Library/Fonts/Optima.dfont ...creates five new AFMs (with kerning pairs) in the current directory. From there, you can do the above two steps. Since afm2pl also creates mapfiles, you can do some extra CLI magic to stitch those together automatically. We can probably take the rest of this off-list if you need further CLI help. cheers, adam
Adam Lindsay wrote:
On 22 Mar 2005, at 16:14, Steffen Wolfrum wrote:
Your result looks promising - but duplicating your way showed me my command line limits:
$ afm2pl -p `kpsewhich texnansi.enc` HelveticaNeue.afm afm2pl: fatal: default.lig not found.
Yeah, Gerben doesn't include that file that afm2pl expects. A quick google revealed: http://www.tug.org/ftp/texlive/Contents/testinstalled/texmf/fonts/lig/ afm2pl/default.lig
...which I copied to the working directory. It should be included in gwTeX.
afaik there is also a bug in afm2pl i.e. it does not look at the right spit for the lig file Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
participants (3)
-
Adam Lindsay
-
Hans Hagen
-
Steffen Wolfrum