[lltx] Font names database
Will Robertson
wspr81 at gmail.com
Wed Jan 13 06:11:29 CET 2010
On 13/01/2010, at 4:39 AM, Khaled Hosny wrote:
> I'm working on a font names database generation script, it is capable of
> producing output similar to ConTeXt's 'simple' font names.
Thanks, this is probably a good idea. I installed the ConTeXt minimals to get this working but that screwed up a couple of things such as texdoc and kpsewhich.
> 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
All I know is that XeTeX is fairly forgiving about which fontname is used. Looks to me as if fullname, fontname, and names.compatfull would be the important (i.e., unique) ones.
By the way, I've been meaning to ask: does ConTeXt (or, now, your script) make it possible to auto-detect italic and bold shapes?
-- Will
More information about the lualatex-dev
mailing list