[lltx] Font names database
khaledhosny at eglug.org
Tue Jan 12 19:09:42 CET 2010
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:
names.compatfull: LM Roman 10 Regular
names.family: LM Roman 10
names.preffamilyname: Latin Modern Roman
names.prefmodifiers: 10 Regular
(not to mention that mac entries in names table are different, but FF
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)
Arabic localiser and member of Arabeyes.org team
Free font developer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 197 bytes
Desc: Digital signature
More information about the lualatex-dev