Bug 32227
| Summary: | With @font-face, SVG fonts only work as primary, non-segmented | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | mitz |
| Component: | SVG | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | joepeck, paulirish, zimmermann |
| Priority: | P2 | Keywords: | InRadar |
| Version: | 528+ (Nightly build) | ||
| Hardware: | All | ||
| OS: | All | ||
| Bug Depends on: | 59085 | ||
| Bug Blocks: | |||
mitz
When used in @font-face, SVG fonts don’t work as a fallback font or in conjunction with other sources for the same family, segmented by Unicode-range. The problem is that the Font methods, e.g. drawText(), check the primary font for SVG-ness and take an entirely different code path for that case.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
mitz
<rdar://problem/7449131>
mitz
One particular nasty issue was discovered by Joseph Pecoraro: GlyphPage::fill() can get called with an SVG font, even though SVG fonts don’t use the glyph cache, if the primary font is non-SVG, but there are SVG segments (apparently one way this can happen is if the SVG font is still loading or failed to load).
Joseph Pecoraro
(In reply to comment #2)
> One particular nasty issue was discovered by Joseph Pecoraro: GlyphPage::fill()
> can get called with an SVG font, even though SVG fonts don’t use the glyph
> cache, if the primary font is non-SVG, but there are SVG segments (apparently
> one way this can happen is if the SVG font is still loading or failed to load).
I opened a separate bug on my issue, because I don't think it would entirely fix this bug:
https://bugs.webkit.org/show_bug.cgi?id=38530
Nikolas Zimmermann
Changed component to SVG, so it shows up in my all-svg-bugs search.
mitz
See also bug 34236.
Nikolas Zimmermann
Fixed in r89233.