<?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>67998</bug_id>
          
          <creation_ts>2011-09-13 05:31:32 -0700</creation_ts>
          <short_desc>[chromium] line gap is added twice in SimpleFontData::platformInit</short_desc>
          <delta_ts>2012-04-13 15:06:46 -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>New Bugs</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>83279</dup_id>
          
          <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 name="Robin Cao">robin.webkit</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>dglazkov</cc>
    
    <cc>efidler</cc>
    
    <cc>evan</cc>
    
    <cc>jamesr</cc>
    
    <cc>robin.webkit</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>466244</commentid>
    <comment_count>0</comment_count>
    <who name="Robin Cao">robin.webkit</who>
    <bug_when>2011-09-13 05:31:32 -0700</bug_when>
    <thetext>Line gap can be added twice in certain code path, which causes layout issues for fonts with large line gap values.

Please see SimpleFontData::platformInit() in Source/WebCore/platform/graphics/chromium/SimpleFontDataLinux.cpp</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>466245</commentid>
    <comment_count>1</comment_count>
    <who name="Robin Cao">robin.webkit</who>
    <bug_when>2011-09-13 05:33:24 -0700</bug_when>
    <thetext>The patch will look like this:

--- a/Source/WebCore/platform/graphics/blackberry/skia/SimpleFontDataBlackBerry.cpp
+++ b/Source/WebCore/platform/graphics/blackberry/skia/SimpleFontDataBlackBerry.cpp
@@ -85,6 +85,10 @@ void SimpleFontData::platformInit()
         SkScalar height = -metrics.fAscent + metrics.fDescent + metrics.fLeading;
         m_fontMetrics.setAscent(SkScalarRound(-metrics.fAscent));
         m_fontMetrics.setDescent(SkScalarRound(height) - m_fontMetrics.ascent());
+        // leading has been added to ascent/descent, so need to reset it to zero.
+        // Otherwise, it will be added twice, which causes layout issues for fonts
+        // with large leading values.
+        metrics.fLeading = 0;
     }
 
     if (metrics.fXHeight)


If this is the right way to go, i&apos;ll upload a patch later.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>466247</commentid>
    <comment_count>2</comment_count>
    <who name="Robin Cao">robin.webkit</who>
    <bug_when>2011-09-13 05:38:47 -0700</bug_when>
    <thetext>CC authors...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>602442</commentid>
    <comment_count>3</comment_count>
    <who name="Eli Fidler">efidler</who>
    <bug_when>2012-04-13 15:06:46 -0700</bug_when>
    <thetext>This issue is extremely complicated, but the proposed method is incorrect. See https://bugs.webkit.org/show_bug.cgi?id=83279

*** This bug has been marked as a duplicate of bug 83279 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>