Bug 6686 - ER: Ignore vendor names in font family lookup
Summary: ER: Ignore vendor names in font family lookup
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: Safari 14
Hardware: Mac All
: P5 Enhancement
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-20 06:38 PST by Nicholas Shanks
Modified: 2020-12-22 09:50 PST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nicholas Shanks 2006-01-20 06:38:00 PST
Say a website specifies the following CSS:
h1 { font-family: "Century", "Garamond", serif; }

And the user has the following fonts installed:
Apple Garamond BT
Adobe Garamond
New Century Schoolbook

The initial search for a font matching "Century" will fail, as it ought to. However so will the search for 
Garamond. I believe instead one of the two Garamonds installed should be matched. This can be 
achieved by having a second font list stripped of all vendor names, which would be searched after 
exhausting all named families, before resorting to the generic "serif". Likewise, the common terms "Std" 
and "Pro" could be removed, allowing "Stone Serif" to match "ITC Stone Serif Pro" for example.
Comment 1 Joost de Valk (AlthA) 2006-02-15 13:40:54 PST
Mitz says this makes sense.
Comment 2 Sam Sneddon [:gsnedders] 2020-12-22 09:50:01 PST
Filed https://github.com/w3c/csswg-drafts/issues/5819 to try and get some guidance as to whether this is even something we should be considering per-spec; bumping priority down to P5 given this clearly isn't a priority.