[webkit-dev] font-face-uri question/issue

Michael O'Rourke mkorourk at adobe.com
Tue Apr 19 08:09:16 PDT 2011


I'm trying to create SVG content which shares embedded SVG fonts from a common SVG file.



I have a 'fonts.svg' that contains a defs section with <fonts> defined that have glyphs.



I have a 'content.svg' which includes in fonts from 'fonts.svg' with code like:



        <font-face font-family="Viva">

            <font-face-src>

                <font-face-uri xlink:href="fonts.svg#Viva">

                  <font-face-format string="svg"/>

              </font-face-uri>

            </font-face-src>

        </font-face>



This works fine when I open 'content.svg' in Chrome or Safari.



However if I create an html file which brings in 'content.svg' with <img> the font is not loaded correctly. This works fine if 'content.svg' is brought in with <embed> or <object>.



Should this work? Should there be a difference when bringing in the SVG content with <img> vs <embed>/<object>?



If this shouldn't be different, might this be related to the 'SVG nesting' bug https://bugs.webkit.org/show_bug.cgi?id=12499 or if I should log a separate bug for this?



Thanks,



Michael
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20110419/07bcc520/attachment.html>


More information about the webkit-dev mailing list