<?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>23119</bug_id>
          
          <creation_ts>2009-01-05 08:49:00 -0800</creation_ts>
          <short_desc>Provide a way for the fonts to prohibit complex text handling</short_desc>
          <delta_ts>2009-04-08 16:11:47 -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>Platform</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <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>1</everconfirmed>
          <reporter name="Brett Wilson (Google)">brettw</reporter>
          <assigned_to name="Brett Wilson (Google)">brettw</assigned_to>
          <cc>aroben</cc>
    
    <cc>jshin</cc>
    
    <cc>mitz</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>104435</commentid>
    <comment_count>0</comment_count>
    <who name="Brett Wilson (Google)">brettw</who>
    <bug_when>2009-01-05 08:49:00 -0800</bug_when>
    <thetext>I&apos;m trying to fix a not uncommon crash in Chromium which probably also affects Safari on Windows:
http://code.google.com/p/chromium/issues/detail?id=3950

It happens inside Uniscribe and is a bug in Windows when doing complex text shaping on bad fonts. Mozilla worked around this bug, and we probably want to do the same. See https://bugzilla.mozilla.org/show_bug.cgi?id=418384

The solution is to (1) detect if a font is Type1 and don&apos;t do shaping on it, and (2) if placement ever fails on the complex script path, force the font to use the non-complex code path.

I think having a flag to Font that is queried when determining how to draw the text should be sufficient. Each port can be in charge of setting the flag (or not) as necessary.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>104454</commentid>
    <comment_count>1</comment_count>
    <who name="Brett Wilson (Google)">brettw</who>
    <bug_when>2009-01-05 10:23:11 -0800</bug_when>
    <thetext>Actually, it looks like Chrome already handles the &quot;placement error&quot; case reported in the Mozilla bug (by just not showing the text), so it shouldn&apos;t crash. I assume our crashes are a result of doing this on PostScript fonts?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>104730</commentid>
    <comment_count>2</comment_count>
    <who name="">mitz</who>
    <bug_when>2009-01-07 11:15:31 -0800</bug_when>
    <thetext>A test case (probably involving a font attached to the bug or otherwise obtainable) will be helpful.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>104731</commentid>
    <comment_count>3</comment_count>
    <who name="Brett Wilson (Google)">brettw</who>
    <bug_when>2009-01-07 11:17:51 -0800</bug_when>
    <thetext>I tried the Mozilla test case on my Vista computer and it worked OK. It could be MS fixed the bug in very recent versions. I&apos;m going to look for an older computer to try.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>