WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED CONFIGURATION CHANGED
Bug 28859
offer a way to test if web/dynamic font support is available ?
https://bugs.webkit.org/show_bug.cgi?id=28859
Summary
offer a way to test if web/dynamic font support is available ?
Jungshik Shin
Reported
2009-08-31 15:56:31 PDT
http://paulirish.com/2009/font-face-feature-detection/
tries to detect whether a browser supports web/dynamic fonts in Javascript. Currently, in Chromium, web font support is off by default and is only enabled with '--enable-remote-font', which is translated into m_downloadableBinaryFontsEnabled of |settings|. Whether m_downloadableBinaryFontsEnabled is true or not, |!!window.CSSFontFaceRule| is always 'true' and cannot be used to check whether web/dynamic font is supported. Even with m_downloadableBinaryFontsEnabled set to false, SVG fonts are still supported. So we cannot/should not make |!!window.CSSFontFaceRule| false. Exposing webkit preferences (read-only) might be a way, but it may be going too far for this unless there are other demands/needs for this.
Attachments
Add attachment
proposed patch, testcase, etc.
mitz
Comment 1
2009-08-31 16:12:34 PDT
Perhaps exposing which formats we (think we) support (in the sense of the optional format() clause in the src property in a @font-face rule) would work.
Jungshik Shin
Comment 2
2009-09-01 10:53:47 PDT
Thank you for the suggestion. That is a great idea ! Do you think this issue has to be brought up more upstream (std-group) than webkit before implementing it in the webkit? For my reference,
http://www.w3.org/TR/css3-fonts/#font-reference-the-src-descriptor
enumerates the values that can be put in optional format param of src descriptor. They're opentype, truetype, truetype-aat, embedded-opentype, and svg.
Jungshik Shin
Comment 3
2009-09-01 11:15:21 PDT
It's not very clear which W3C WG works on the successor of DOM 2.0 CSS (where CSSFontFaceRule is defined), webapp or html5 now that W3C DOM WG was disbanded.
Ahmad Saleem
Comment 4
2022-08-31 15:13:08 PDT
rniwa@webkit.org
&
ap@webkit.org
- Is this required anymore? Thanks!
Ryosuke Niwa
Comment 5
2022-09-01 22:52:53 PDT
We have a bunch of JS API for font face now.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug