<?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>130163</bug_id>
          
          <creation_ts>2014-03-12 16:08:19 -0700</creation_ts>
          <short_desc>&quot;Lucida Grande&quot; is hardcoded in RenderTextControlSingleLine.cpp</short_desc>
          <delta_ts>2023-07-02 16:13:13 -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>Layout and Rendering</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</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="Myles C. Maxfield">mmaxfield</reporter>
          <assigned_to name="Myles C. Maxfield">mmaxfield</assigned_to>
          <cc>ahmad.saleem792</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>989849</commentid>
    <comment_count>0</comment_count>
    <who name="Myles C. Maxfield">mmaxfield</who>
    <bug_when>2014-03-12 16:08:19 -0700</bug_when>
    <thetext>Not all platforms use this default font, and there should be one source of truth for what the default font is.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1964715</commentid>
    <comment_count>1</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-07-02 16:13:13 -0700</bug_when>
    <thetext>We still have this: https://searchfox.org/wubkat/source/Source/WebCore/rendering/RenderTextControlSingleLine.cpp#337 &amp; 


#if !PLATFORM(IOS_FAMILY)
    // Since Lucida Grande is the default font, we want this to match the width
    // of MS Shell Dlg, the default font for textareas in Firefox, Safari Win and
    // IE for some encodings (in IE, the default font is encoding specific).
    // 901 is the avgCharWidth value in the OS/2 table for MS Shell Dlg.
    if (style().fontCascade().firstFamily() == &quot;Lucida Grande&quot;_s)
        return scaleEmToUnits(901);
#endif

_______

https://searchfox.org/wubkat/source/Source/WebCore/rendering/RenderTextControlSingleLine.cpp#360


#if !PLATFORM(IOS_FAMILY)
    const AtomString&amp; family = style().fontCascade().firstFamily();
    // Since Lucida Grande is the default font, we want this to match the width
    // of MS Shell Dlg, the default font for textareas in Firefox, Safari Win and
    // IE for some encodings (in IE, the default font is encoding specific).
    // 4027 is the (xMax - xMin) value in the &quot;head&quot; font table for MS Shell Dlg.
    if (family == &quot;Lucida Grande&quot;_s)
        maxCharWidth = scaleEmToUnits(4027);
    else if (style().fontCascade().hasValidAverageCharWidth())
        maxCharWidth = roundf(style().fontCascade().primaryFont().maxCharWidth());
#endif

_______</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>