Bug 98477
| Summary: | Hebrew text doesn't render in SVGImage (does render in SVG DOM) | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Adam Barth <abarth> |
| Component: | SVG | Assignee: | Nobody <webkit-unassigned> |
| Status: | NEW | ||
| Severity: | Normal | CC: | ap, eric, krit, mitz, pdr, schenney, zimmermann |
| Priority: | P2 | ||
| Version: | 528+ (Nightly build) | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Adam Barth
Compare:
data:text/html,<img src="http://aharon.varady.net/browser-test/images/Open-Siddur-Project-Logo+HebrewTimes.svg">
http://aharon.varady.net/browser-test/images/Open-Siddur-Project-Logo+HebrewTimes.svg
Examples from http://aharon.varady.net/browser-test/all-in-one.html
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Alexey Proskuryakov
This appears to work in Safari 6.0.1 on Mac.
> Examples from http://aharon.varady.net/browser-test/all-in-one.html
The last test from this page doesn't work on Mac though.
mitz
The behavior is dependent on whether the image has been opened as a standalone SVG document prior to opening the document that uses it as a source for an img element or not.
Eric Seidel (no email)
Perhaps it uses an SVG font:
<![CDATA[
@font-face {
font-family: 'Linux Libertine O';
font-weight: normal;
font-style: normal;
src: url("http://aharon.varady.net/browser-test/fonts/LinLibertineO-Hebrew.svg#LinLibertineO-Hebrew") format("svg")
}
]]>
SVGImages are disallowed from loading external resources, but I guess they're not disallowed from loading cached resources?
Stephen Chenney
(In reply to comment #3)
> Perhaps it uses an SVG font:
> <![CDATA[
> @font-face {
> font-family: 'Linux Libertine O';
> font-weight: normal;
> font-style: normal;
> src: url("http://aharon.varady.net/browser-test/fonts/LinLibertineO-Hebrew.svg#LinLibertineO-Hebrew") format("svg")
> }
> ]]>
>
> SVGImages are disallowed from loading external resources, but I guess they're not disallowed from loading cached resources?
Do we consider fonts as external resources? I suppose we do. This test does not work if included in the html as <embed> or <object> either.
Most likely reason for the font existing in some cases when earlier loaded is that the font is still in existence. I'll try to verify that somehow.
Stephen Chenney
All sorts of odd behavior. If all the files are downloaded locally and loaded from disk, the <img> loads and shows the font, but incorrectly. Can't figure that out.
Still, there's absolutely no reason to think that this particular SVG font would be any more problematic than any other SVG font, and we get few complaints of those failing. So I'm at a loss.
I'll look into it some more when (and if) I have time.
Dirk Schulze
Fonts count as external resource. Anyway, we should fallback to something if the font can not be downloaded. (If that is the issue even.)