[Webkit-unassigned] [Bug 248656] `system-ui` should not be treated as a font face name in `src:local(...)`

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Dec 21 09:02:48 PST 2022


https://bugs.webkit.org/show_bug.cgi?id=248656

--- Comment #6 from Jeff Johnson <opendarwin at lapcatsoftware.com> ---
(In reply to Jonathan Kew from comment #5)
> If anything, what ought to work in src:local would be the font's PostScript
> name, so:
> 
>   @font-face { font-family: test; src: local(".SFNS-Regular"); }
> 
> That doesn't currently appear to work, at least in the version of Safari I
> have on hand; but in principle it would be a valid thing to do, if Apple
> didn't choose to hide .-prefixed fonts.
> 
> If you think such fonts should be exposed to @font-face, that'd be something
> to consider in a separate bug.

I'd be happy to file another bug if necessary. However, I don't think this bug should be "fixed" until there's a replacement. Especially because it would mean taking away useful functionality, for no apparently advantage.

Perhaps the spec itself should be rethought? Is there a reason that local() is so restrictive and doesn't accept generic font names?

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20221221/78bb48b3/attachment.htm>


More information about the webkit-unassigned mailing list