<?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>20846</bug_id>
          
          <creation_ts>2008-09-14 19:14:56 -0700</creation_ts>
          <short_desc>Initial and generic font families are undefined for SVGs used as images</short_desc>
          <delta_ts>2025-09-20 03:49:07 -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>Images</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.5</op_sys>
          <bug_status>REOPENED</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=191834</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>20847</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter>mitz</reporter>
          <assigned_to name="Fujii Hironori">fujii</assigned_to>
          <cc>simon.fraser</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>91167</commentid>
    <comment_count>0</comment_count>
    <who name="">mitz</who>
    <bug_when>2008-09-14 19:14:56 -0700</bug_when>
    <thetext>SVGImage creates a Page to hold the SVG document, but standardFontFamily and the generic font families are empty in that page&apos;s settings. It is not obvious where to take the values for those settings from for an SVG image.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>91168</commentid>
    <comment_count>1</comment_count>
    <who name="">mitz</who>
    <bug_when>2008-09-14 19:16:45 -0700</bug_when>
    <thetext>This bug became apparent after &lt;http://trac.webkit.org/changeset/36382&gt;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>521287</commentid>
    <comment_count>2</comment_count>
    <who name="">mitz</who>
    <bug_when>2011-12-14 14:18:16 -0800</bug_when>
    <thetext>See also bug 68090.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2081975</commentid>
    <comment_count>3</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2024-12-16 00:07:09 -0800</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/38003</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2082115</commentid>
    <comment_count>4</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2024-12-16 11:48:11 -0800</bug_when>
    <thetext>Committed 287903@main (42425440a334): &lt;https://commits.webkit.org/287903@main&gt;

Reviewed commits have been landed. Closing PR #38003 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2082117</commentid>
    <comment_count>5</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2024-12-16 11:49:17 -0800</bug_when>
    <thetext>&lt;rdar://problem/141560077&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2142609</commentid>
    <comment_count>6</comment_count>
    <who name="">mitz</who>
    <bug_when>2025-09-12 09:39:54 -0700</bug_when>
    <thetext>No way to add a regression test for this?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2142723</commentid>
    <comment_count>7</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2025-09-12 18:03:50 -0700</bug_when>
    <thetext>I don&apos;t remember why I didn&apos;t add a layout test case.
It seems to be possible by using internals.settings.setStandardFontFamily().
Will take a look.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2142733</commentid>
    <comment_count>8</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2025-09-12 19:05:11 -0700</bug_when>
    <thetext>Re-opening for pull request https://github.com/WebKit/WebKit/pull/50693</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2144637</commentid>
    <comment_count>9</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2025-09-20 03:49:07 -0700</bug_when>
    <thetext>SVG Image disables user installed fonts. Thus, I can&apos;t use Ahem font for layout tests. This makes difficult to create a cross platform test case.
See also bug#190195
Any ideas?

&gt; m_page-&gt;settings().setShouldAllowUserInstalledFonts(false);
https://github.com/WebKit/WebKit/blob/edb7dbd59d799e010a5acdcea6a0821df9f14a79/Source/WebCore/svg/graphics/SVGImage.cpp#L489</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>