<?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>25581</bug_id>
          
          <creation_ts>2009-05-05 18:09:59 -0700</creation_ts>
          <short_desc>maxCharWidth computation in SimpleFontDataMac.mm is smaller than Windows results</short_desc>
          <delta_ts>2010-02-12 19:24:42 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Layout and Rendering</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.5</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</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="Ojan Vafai">ojan</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>adele</cc>
    
    <cc>agl</cc>
    
    <cc>amanda</cc>
    
    <cc>mitz</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>120047</commentid>
    <comment_count>0</comment_count>
    <who name="Ojan Vafai">ojan</who>
    <bug_when>2009-05-05 18:09:59 -0700</bug_when>
    <thetext>The numbers we get on the mac are often 10-20px smaller than the numbers we get on Windows. This matters because it is one of the factors that makes our text inputs smaller than IE on Mac WebKit. 

Currently we grab the maximumAdvancement off the NSFont. On Chromium Linux (which gets the same values as Windows for Windows fonts), we compute the maxCharWidth as the xMax-xMin of the font by looking at the hmtx font table. Or something like that. :) Amanda is working on a patch that tries to do the same on the Mac.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>