<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>76162</bug_id>
          
          <creation_ts>2012-01-12 02:58:54 -0800</creation_ts>
          <short_desc>Font selection fails when including external SVG</short_desc>
          <delta_ts>2015-05-15 13:09:00 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>SVG</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Mac (Intel)</rep_platform>
          <op_sys>OS X 10.7</op_sys>
          <bug_status>UNCONFIRMED</bug_status>
          <resolution></resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=68090</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=6487</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter>pom</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>pierreetienne.meunier</cc>
    
    <cc>rwlbuis</cc>
    
    <cc>zimmermann</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>534694</commentid>
    <comment_count>0</comment_count>
      <attachid>122199</attachid>
    <who name="">pom</who>
    <bug_when>2012-01-12 02:58:54 -0800</bug_when>
    <thetext>Created attachment 122199
Left is included SVG, right is inline SVG. Font selection fails in included SVG

When including an external SVG file (e.g. with the SVG &lt;image&gt; tag or the HTML &lt;img&gt; tag), font selection fails for the &lt;text&gt; elements with a &quot;font-family&quot; attribute in the included file. Attached are two files: bug_image_font.html is an HTML that shows two SVG images, one included from the file image.svg and the other inline. Both are identical, but in the included case (left), the sans-serif text is rendered with the default, serif font (at least on my machine.) The inline example (or the included SVG file loaded directly) shows the right fonts.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>534695</commentid>
    <comment_count>1</comment_count>
      <attachid>122200</attachid>
    <who name="">pom</who>
    <bug_when>2012-01-12 02:59:40 -0800</bug_when>
    <thetext>Created attachment 122200
The included SVG file (identical to the inline content), works as expected when loaded directly</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>534939</commentid>
    <comment_count>2</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2012-01-12 10:13:42 -0800</bug_when>
    <thetext>See also: bug 68090.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>645611</commentid>
    <comment_count>3</comment_count>
    <who name="Rob Buis">rwlbuis</who>
    <bug_when>2012-06-10 13:12:33 -0700</bug_when>
    <thetext>This bug is probably invalid, Opera and FF do not support this either. Furthermore, having svg embedded inline in a html document is the workaround anyway. If I get svg-as-image correctly, it is just another image format.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>663744</commentid>
    <comment_count>4</comment_count>
    <who name="">pierreetienne.meunier</who>
    <bug_when>2012-07-05 14:54:42 -0700</bug_when>
    <thetext>Firefox does not support svg fonts. In order to be an image format, &quot;svg-as-image&quot; should not change when embedded in an html page. This is not the case with any other format : a jpeg looks the same when seen alone in a browser, or in an html page.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>122199</attachid>
            <date>2012-01-12 02:58:54 -0800</date>
            <delta_ts>2012-01-12 02:58:54 -0800</delta_ts>
            <desc>Left is included SVG, right is inline SVG. Font selection fails in included SVG</desc>
            <filename>bug_image_font.html</filename>
            <type>text/html</type>
            <size>472</size>
            <attacher>pom</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWw+CjxodG1sIGxhbmc9ImVuIj4KICA8aGVhZD4KICAgIDx0aXRsZT5JbmNs
dWRlIFNWRyBJbWFnZTogZm9udCBzZWxlY3Rpb24gaXNzdWU8L3RpdGxlPgogICAgPG1ldGEgY2hh
cnNldD0iVVRGLTgiPgogICAgPHN0eWxlPgogICAgICBzdmcgeyB3aWR0aDogNDAwcHg7IGhlaWdo
dDogNDAwcHg7IH0KICAgIDwvc3R5bGU+CiAgPC9oZWFkPgogIDxib2R5PgogICAgPGltZyBzcmM9
ImltYWdlLnN2ZyIgd2lkdGg9IjQwMCIgaGVpZ2h0PSI0MDAiPgogICAgPHN2ZyB2aWV3Qm94PSIw
IDAgMTAwIDEwMCI+CiAgICAgIDx0ZXh0IHk9IjIwIiBmb250LXNpemU9IjE2IiBmb250LWZhbWls
eT0ic2VyaWYiPnNlcmlmPC90ZXh0PgogICAgICA8dGV4dCB5PSI0MCIgZm9udC1zaXplPSIxNiIg
Zm9udC1mYW1pbHk9InNhbnMtc2VyaWYiPnNhbnMtc2VyaWY8L3RleHQ+CiAgICA8L3N2Zz4KICA8
L2JvZHk+CjwvaHRtbD4KCg==
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>122200</attachid>
            <date>2012-01-12 02:59:40 -0800</date>
            <delta_ts>2012-01-12 02:59:40 -0800</delta_ts>
            <desc>The included SVG file (identical to the inline content), works as expected when loaded directly</desc>
            <filename>image.svg</filename>
            <type>image/svg+xml</type>
            <size>206</size>
            <attacher>pom</attacher>
            
              <data encoding="base64">PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMDAg
MTAwIj4KICA8dGV4dCB5PSIyMCIgZm9udC1zaXplPSIxNiIgZm9udC1mYW1pbHk9InNlcmlmIj5z
ZXJpZjwvdGV4dD4KICA8dGV4dCB5PSI0MCIgZm9udC1zaXplPSIxNiIgZm9udC1mYW1pbHk9InNh
bnMtc2VyaWYiPnNhbnMtc2VyaWY8L3RleHQ+Cjwvc3ZnPgo=
</data>

          </attachment>
      

    </bug>

</bugzilla>