Kaixo!

On Fri, Sep 24, 1999 at 12:31:34PM +0200, Bernhard Rosenkraenzer wrote:

> Wrong. Mandrake 6.0 and 6.1 come with X-TT in X, not (like RH) with xfsft.
> Therefore, it's not ttmkfdir, but mkttfdir.

Both X-TT and xfsft use the same syntax for the fonts.dir file; so it should
work the same be it with ttmkfdir or mkttfdir I think.
(Mandrake uses ttmkfdir; to be exact a higly hacked (by me) version of
 ttmkfdir. the changes are I added recognition of various new encodings,
so the right lines are written)

The version I saw of mkttfdir (1.17) only add lines for iso-8859-1 and
japanese fonts; that isn't very good imho.

The ttmkfdir looks in the unicode encodings of the TTF, and compare the
available unicode values with some internal ttmkfdir tables; then if
the font has all the unicode values of so-8859-10 for example, it will
add a line 

foobar.ttf      -foo-bar-medium-r-normal--0-0-0-0-p-0-iso8859-10

(in fact there is some tolerance of 2-3 missing letters; that is
command-line configurable)
and it will do that for all internally known encodings (koi8-r, etc).
For 16bit encodings the internal table isn't the full table; but a 256 or 128
char (I don't remember) filled with some values typically representative of 
that encoding.

It works very well with correct fonts; only some boggus fonts that have
only iso-8859-1 but wrongly claim to have plenty of unicode letters, pose
problem; but that is because those fonts lie.

eg:

chanae:/tmp# ttmkfdir      
16
ArmNH.ttf -2Rebels-ArmNet Helvetica-medium-r-normal--0-0-0-0-p-0-armscii-8
ArmNH.ttf -2Rebels-ArmNet Helvetica-medium-r-normal--0-0-0-0-p-0-iso8859-1
tahoma.ttf -microsoft-Tahoma-medium-r-normal--0-0-0-0-p-0-tcvn-5712
tahoma.ttf -microsoft-Tahoma-medium-r-normal--0-0-0-0-p-0-viscii1.1-1
tahoma.ttf -microsoft-Tahoma-medium-r-normal--0-0-0-0-p-0-iso8859-15
tahoma.ttf -microsoft-Tahoma-medium-r-normal--0-0-0-0-p-0-tis620.2533-1
tahoma.ttf -microsoft-Tahoma-medium-r-normal--0-0-0-0-p-0-iso8859-10
tahoma.ttf -microsoft-Tahoma-medium-r-normal--0-0-0-0-p-0-iso8859-9
tahoma.ttf -microsoft-Tahoma-medium-r-normal--0-0-0-0-p-0-iso8859-8
tahoma.ttf -microsoft-Tahoma-medium-r-normal--0-0-0-0-p-0-iso8859-7
tahoma.ttf -microsoft-Tahoma-medium-r-normal--0-0-0-0-p-0-iso8859-6
tahoma.ttf -microsoft-Tahoma-medium-r-normal--0-0-0-0-p-0-iso8859-5
tahoma.ttf -microsoft-Tahoma-medium-r-normal--0-0-0-0-p-0-iso8859-4
tahoma.ttf -microsoft-Tahoma-medium-r-normal--0-0-0-0-p-0-iso8859-3
tahoma.ttf -microsoft-Tahoma-medium-r-normal--0-0-0-0-p-0-iso8859-2
tahoma.ttf -microsoft-Tahoma-medium-r-normal--0-0-0-0-p-0-iso8859-1

-- 
Ki �a vos v�ye b�n,
Pablo Saratxaga

http://www.ping.be/~pin19314/           PGP Key available, key ID: 0x8F0E4975

Reply via email to