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
_______________________________________________
webkit-dev mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev

Reply via email to