[lltx] Font names database

Khaled Hosny khaledhosny at eglug.org
Tue Jan 12 19:09:42 CET 2010

Hi all,

I'm working on a font names database generation script, it is capable of
producing output similar to ConTeXt's 'simple' font names.

Now I'm wondering where, in TEXMF tree, should I store the database
file? I thought $TEXMFVAR is a logical choice, but kpse seems not to be
able to find files there, any idea?

The main problem now is which font names should we index, currently we
simply take the 'fullname' as returned by fontloader, but things is isn't
that simple! There is a hell of different font names stored in the font;
fontname, fullname, familyname, and identical enteries in TTF names
table, which in turn have different copies for mac and windows! And
kindly enough, font designers have taken the liberty to have different
names in each set. Take LM roman regular as an example:

fullname: LMRoman10-Regular
fontname: LMRoman10-Regular
familyname: LMRoman10
names.compatfull: LM Roman 10 Regular
names.family: LM Roman 10
names.preffamilyname: Latin Modern Roman
names.prefmodifiers: 10 Regular
fontstyle_name: Regular

(not to mention that mac entries in names table are different, but FF
ignores it)
And this is only a single font!

Now which one should I pick? Any idea how Fontconfig and similar tools
handle this? (since what they return is likely to be expected by users)


 Khaled Hosny
 Arabic localiser and member of Arabeyes.org team
 Free font developer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
URL: <http://tug.org/pipermail/lualatex-dev/attachments/20100112/8b638bd5/attachment.bin>

More information about the lualatex-dev mailing list