Kaixo!

On Wed, Feb 06, 2002 at 02:08:32AM -0500, Mike A. Harris wrote:
> When running ttmkfdir (the C++ version) with Korean and many 
> other fonts, it chokes horribly with the following errors:
> 
> pts/25 root@devel:/usr/share/fonts/ko/TrueType# ttmkfdir -o fonts.scale
> unexpected token FIRSTINDEX in file 
>/usr/X11R6/lib/X11/fonts/encodings/large/ksc5601.1992-3.enc.gz, 
> line 8

> After a fair bit of investigation, I downloaded the Debian 
> ttmkfdir and the Mandrake one as well.  Those ttmkfdir's dont 
> produce the correct results either but at least don't SEGV on 
> korean fonts.

The one used at Mandrake don't use the *.enc files, it has its own
compiled in tables and tests the presence of given values in the ttf
file itself. It's just the old version of ttmkfdir with some more
tables.
For large fonts, it just test some ~200 values, hopefully some caracteristic
ones for the different CJK encodings.
We also added a "-u" command line switch to force the output of *-iso10646-1
lines for all fonts.

What result did you expected that it wasn't correct?
 
> I'm wondering what the intention of adding FIRSTINDEX to the 
> encoding files is, as it prevent's ttmkfdir from working 

IIRC it is to have the XLFD fonts made out of the ttf look the same
as the bitmap ones, that is, starting at the right place.
Otherwise they start at index 0x0000 and have white glyphs (not "missing"
or "empty" but white, like in a white space) until the first real value
(something like 0x2020 IIRC)).
It may be annoying in some cases, viewing the fonts with "xfd" being one
of them.

> My current short term solution in mind is to remove the 
> FIRSTINDEX entries from the encoding files so that things work 
> for now as they always have, and in the mean time see if there 
> are patches floating around for ttmkfdir to handle this for the 
> longer term.

If FIRSTINDEX could be ignored that way, it should be easier to make ttmkfdir
ignore it.

-- 
Ki ça vos våye bén,
Pablo Saratxaga

http://www.srtxg.easynet.be/            PGP Key available, key ID: 0x8F0E4975

_______________________________________________
Fonts mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/fonts

Reply via email to