Summary: | preferred family name should be used | ||
---|---|---|---|
Product: | fontconfig | Reporter: | Denis Jacquerye <moyogo> |
Component: | library | Assignee: | Keith Packard <keithp> |
Status: | RESOLVED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | high | CC: | abelcheung |
Version: | 2_1 | ||
Hardware: | x86 (IA32) | ||
OS: | Linux (All) | ||
URL: | http://www.microsoft.com/typography/otspec/name.htm | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Bug Depends on: | |||
Bug Blocks: | 8842 |
Description
Denis Jacquerye
2006-07-28 06:36:24 UTC
Should we not include font name 1 if fontname 16 is present? (In reply to comment #1) > Should we not include font name 1 if fontname 16 is present? From what I understand fontname 16 should be used whenever possible, fontname 1 is legacy. A font family should have the same fontname 16 across fonts, and different fontname 1 to be useable on legacy systems. From a designer's point of view, it seems more practical to be able to have a whole font family under the same hood. I guess fontname 1 should still be matched when fontname 16 does not. So it should be kept and used when necesarry. In any case most fonts have fontname 1 because Windows still uses legacy. Ok, so we retain the current policy of grubbing every imaginable name out of the font file and sticking that in the family element. Right now, I'm using the order that the names appear in the font to choose which name is listed first in this element; is there any particular reason to do somthing different, like prefer name 16 first? If the first name in the list is what is displayed in apps, yes Name ID 16 should be first. It is the "preferred family name" in the OT specs after all. Otherwise I don't think it makes much difference in the match results to have name ID 16 ordered before name ID 1. I can easily add preferred name/style information to the font information, the question is which should be listed first. The first name often guides applications in presenting font lists, so we're going to end up listing all Deja Vu fonts under the same family name which will often confuse users who are now used to seeing different styles listed as different families. Contrast this with bug (In reply to comment #5) It's tough to say which should come first, the legacy name or the preferred name. Many users are used to legacy, but preferred names seem to make more sense. Could the order legacy vs. preferred be set at compilation time or in a configuration file? I've just coded the library to prefer the 'preferred' names over the other names. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.