need some guru's help

Lars Hellström Lars.Hellstrom@math.umu.se
Thu, 20 Jun 2002 17:13:10 +0200


At 15.14 +0200 2002-06-20, Sebastian Ahrens wrote:
>Hi everybody,
>
>I am trying to install the AdobeGaramond with Oldstyle-Figures and Expert
>glyphs; I have chosen to simply use the BoldOsF, BoldItalicOsF and ItalicOsF
>fonts and therefore only with the Roman fonts I have to do the exchange of
>the digits. With my fontinst.tex file as below everything works fine, only
>the ff, ffi and ffl ligatures are not getting found. In every vpl-file
>fontinst is creating I find twice C f instead of the LIG entry. The
>ligatures are in the pfb and afm files only the charcode is above D 256 and
>in the afm file the lines start with C -1:

Well, that explains it. TeX can, like PostScript, only work with characters
that have character code between 0 and 255 inclusive. If some glyphs are
not in the PS encoding of the font, then the only way to make them
available is to reencode the font.

>****************************************
>
>StartFontMetrics 2.0
>Comment Copyright (c) 1989, 1992, 1994 Adobe Systems Incorporated.  All
>Rights Reserved.Adobe Garamond is a registered trademark of Adobe Systems
>Incorporated.
[snip]
>C -1 ; WX 200 ; N exclamsmall ; B -183 -246 955 715 ;
>...
>C -1 ; WX 424 ; N nsuperior ; B -183 -246 955 715 ;
>C -1 ; WX 387 ; N osuperior ; B -183 -246 955 715 ;
>C -1 ; WX 272 ; N rsuperior ; B -183 -246 955 715 ;
>C -1 ; WX 268 ; N ssuperior ; B -183 -246 955 715 ;
>C -1 ; WX 270 ; N tsuperior ; B -183 -246 955 715 ;
>C -1 ; WX 558 ; N ff ; B -183 -246 955 715 ;
>C -1 ; WX 522 ; N fi ; B -183 -246 955 715 ;
>C -1 ; WX 522 ; N fl ; B -183 -246 955 715 ;
>C -1 ; WX 790 ; N ffi ; B -183 -246 955 715 ;
>C -1 ; WX 789 ; N ffl ; B -183 -246 955 715 ;

That is curious. The AFM I've got for that font (which I believe I
downloaded from Adobe) begin with

  StartFontMetrics 4.1
  Comment Copyright (c) 1989, 1992, 1994 Adobe Systems Incorporated.  All
Rights  Reserved.
  Comment Creation Date: Fri Apr 22 12:36:27 1994

and down there it says

  C 83 ; WX 268 ; N ssuperior ; B 30 240 238 540 ;
  C 84 ; WX 270 ; N tsuperior ; B 35 240 253 579 ;
  C 86 ; WX 558 ; N ff ; B 30 -3 670 715 ;
  C 87 ; WX 522 ; N fi ; B 30 -3 500 715 ;
  C 88 ; WX 522 ; N fl ; B 30 -3 503 715 ;
  C 89 ; WX 790 ; N ffi ; B 30 -3 768 715 ;
  C 90 ; WX 789 ; N ffl ; B 30 -3 770 715 ;

It would seem that what you have is not _the_ AFM for this font, but
perhaps rather some automated attempt at regenerating it. (Doesn't seem to
be any good either, considering that it uses the FontBBox as BBox for every
individual glyph.) Your problem mainly seems to be due to that it doesn't
get the encoding right.

What you should do: Get the proper AFMs from Adobe, and try again. The AFMs
are (as was mentioned recently) at
  ftp://ftp.adobe.com/pub/adobe/type/win/all/afmfiles/
AGaramond is packages 100 and 101.

Lars Hellström