[Fontinst] kerns for digits

Reinhard Kotucha reinhard.kotucha at web.de
Fri Aug 5 17:20:30 CEST 2005


>>>>> "Thanh" == Thanh Han The <hanthethanh at gmail.com> writes:

  > thanks for the hint. btw, the urw fonts contains more kerns for
  > digits than just the "11" kern.

  > Encoding files for use with afm2tfm/pdftex/dvips like ec.enc or
  > dc.enc have instructions like

  > % LIGKERN space {} * ; * {} space ; zero {} * ; * {} zero ; %
  > LIGKERN one {} * ; * {} one ; two {} * ; * {} two ; % LIGKERN
  > three {} * ; * {} three ; four {} * ; * {} four ; % LIGKERN five
  > {} * ; * {} five ; six {} * ; * {} six ; % LIGKERN seven {} * ; *
  > {} seven ; eight {} * ; * {} eight ; % LIGKERN nine {} * ; * {}
  > nine ;

  > to throw away kerns for digits and space. So I looked for some
  > similar code in fontinst but couldn't find any. I should have
  > asked on this ml first to save some time.

Hi Thanh,
I just looked into several afm files.  My first assumption seems to be
correct:  You are using the broken afm files shipped with ghostscript.

I suggest to replace all afm files in urwvn by the files maintained by
Walter.  

[...]
KPX zero four 3
KPX zero one -13
KPX zero seven -22
KPX one comma -50
KPX one eight -47
KPX one five -23
KPX one four -63
KPX one nine -39
KPX one one -38
KPX one period -36
[...]

In order to make Walter's fonts usable for tabulars, remove the line
KPX one one -55
in the afm file and run fontinst again.

Cheers,
  Reinhard

-- 
----------------------------------------------------------------------------
Reinhard Kotucha			              Phone: +49-511-4592165
Marschnerstr. 25
D-30167 Hannover	                      mailto:reinhard.kotucha at web.de
----------------------------------------------------------------------------
Microsoft isn't the answer. Microsoft is the question, and the answer is NO.
----------------------------------------------------------------------------




More information about the fontinst mailing list