]> git.wh0rd.org - fontconfig.git/commit
Use explicit platform/nameid order when scanning ttf files.
authorKeith Packard <keithp@neko.keithp.com>
Sat, 2 Dec 2006 19:47:07 +0000 (11:47 -0800)
committerKeith Packard <keithp@neko.keithp.com>
Sat, 2 Dec 2006 19:47:07 +0000 (11:47 -0800)
commit253ec7609c13b46c717c801206ebb1a6c7f06e27
tree1acabd9cf8cea9a9f458424231d2da0543633a31
parentb5803016d74856eb44b05876f0d7178bfec0df47
Use explicit platform/nameid order when scanning ttf files.

Instead of accepting whatever order names appear in the font file,
use an explicit ordering for both platform and nameid.

Platforms are high precedence than nameids.

The platform order is:

microsoft, apple unicode, macintosh, (other)

The family nameid order is:

preferred family, font family

The fullname nameid order is:

mac full name, full name

The style nameid order is

preferred subfamily, font subfamily

This will change the names visible to users in various application UIs, but
should not change how existing font names are matched as all names remain
present in the resulting database. The hope is that family names will, in
general, be less ambiguous. Testing here shows that commercial fonts
have longer names now while DejaVu has a shorter family name, and moves more
of the font description to the style name.
src/fcfreetype.c