<?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>177479</bug_id>
          
          <creation_ts>2017-09-25 18:59:43 -0700</creation_ts>
          <short_desc>[WinCairo] Share default value of font family preferences among non-cocoa builds</short_desc>
          <delta_ts>2017-09-27 12:16:03 -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>WebKit2</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <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>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Yoshiaki Jitsukawa">yoshiaki.jitsukawa</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>achristensen</cc>
    
    <cc>bfulgham</cc>
    
    <cc>commit-queue</cc>
    
    <cc>don.olmstead</cc>
    
    <cc>stephan.szabo</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>yoshiaki.jitsukawa</cc>
    
    <cc>Yousuke.Kimoto</cc>
    
    <cc>ysuzuki</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1352553</commentid>
    <comment_count>0</comment_count>
    <who name="Yoshiaki Jitsukawa">yoshiaki.jitsukawa</who>
    <bug_when>2017-09-25 18:59:43 -0700</bug_when>
    <thetext>Currently the default font family preferences are defined for
 PLATFORM(COCOA) and (PLATFORM(GTK) || PLATFORM(WPE))
and there&apos;s no definitions for the other ports.

It seems like we can use (PLATFORM(GTK) || PLATFORM(WPE))&apos;s one as a default case.

#if PLATFORM(COCOA)

#define FOR_EACH_WEBKIT_FONT_FAMILY_PREFERENCE(macro) \
    macro(StandardFontFamily, standardFontFamily, String, String, &quot;Times&quot;, &quot;&quot;, &quot;&quot;) \
    macro(CursiveFontFamily, cursiveFontFamily, String, String, DEFAULT_CURSIVE_FONT_FAMILY, &quot;&quot;, &quot;&quot;) \
    macro(FantasyFontFamily, fantasyFontFamily, String, String, &quot;Papyrus&quot;, &quot;&quot;, &quot;&quot;) \
    macro(FixedFontFamily, fixedFontFamily, String, String, &quot;Courier&quot;, &quot;&quot;, &quot;&quot;) \
    macro(SansSerifFontFamily, sansSerifFontFamily, String, String, &quot;Helvetica&quot;, &quot;&quot;, &quot;&quot;) \
    macro(SerifFontFamily, serifFontFamily, String, String, &quot;Times&quot;, &quot;&quot;, &quot;&quot;) \
    macro(PictographFontFamily, pictographFontFamily, String, String, &quot;Apple Color Emoji&quot;, &quot;&quot;, &quot;&quot;) \
    \

#elif PLATFORM(GTK) || PLATFORM(WPE)

#define FOR_EACH_WEBKIT_FONT_FAMILY_PREFERENCE(macro) \
    macro(StandardFontFamily, standardFontFamily, String, String, &quot;Times&quot;, &quot;&quot;, &quot;&quot;) \
    macro(CursiveFontFamily, cursiveFontFamily, String, String, &quot;Comic Sans MS&quot;, &quot;&quot;, &quot;&quot;) \
    macro(FantasyFontFamily, fantasyFontFamily, String, String, &quot;Impact&quot;, &quot;&quot;, &quot;&quot;) \
    macro(FixedFontFamily, fixedFontFamily, String, String, &quot;Courier New&quot;, &quot;&quot;, &quot;&quot;) \
    macro(SansSerifFontFamily, sansSerifFontFamily, String, String, &quot;Helvetica&quot;, &quot;&quot;, &quot;&quot;) \
    macro(SerifFontFamily, serifFontFamily, String, String, &quot;Times&quot;, &quot;&quot;, &quot;&quot;) \
    macro(PictographFontFamily, pictographFontFamily, String, String, &quot;Times&quot;, &quot;&quot;, &quot;&quot;) \
    \

#endif</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1352561</commentid>
    <comment_count>1</comment_count>
      <attachid>321786</attachid>
    <who name="Yoshiaki Jitsukawa">yoshiaki.jitsukawa</who>
    <bug_when>2017-09-25 19:39:42 -0700</bug_when>
    <thetext>Created attachment 321786
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1352571</commentid>
    <comment_count>2</comment_count>
      <attachid>321786</attachid>
    <who name="Yusuke Suzuki">ysuzuki</who>
    <bug_when>2017-09-25 21:18:10 -0700</bug_when>
    <thetext>Comment on attachment 321786
Patch

r=me</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1352573</commentid>
    <comment_count>3</comment_count>
      <attachid>321786</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2017-09-25 21:56:14 -0700</bug_when>
    <thetext>Comment on attachment 321786
Patch

Clearing flags on attachment: 321786

Committed r222490: &lt;http://trac.webkit.org/changeset/222490&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1352574</commentid>
    <comment_count>4</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2017-09-25 21:56:16 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1353243</commentid>
    <comment_count>5</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2017-09-27 12:16:03 -0700</bug_when>
    <thetext>&lt;rdar://problem/34692895&gt;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>321786</attachid>
            <date>2017-09-25 19:39:42 -0700</date>
            <delta_ts>2017-09-25 21:56:14 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-177479-20170926114030.patch</filename>
            <type>text/plain</type>
            <size>1342</size>
            <attacher name="Yoshiaki Jitsukawa">yoshiaki.jitsuk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