<?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>115634</bug_id>
          
          <creation_ts>2013-05-06 04:14:50 -0700</creation_ts>
          <short_desc>[FreeType] Wrong font selected when using an English font-family name in css definition</short_desc>
          <delta_ts>2017-07-11 13:09:09 -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>WebKitGTK</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>UNCONFIRMED</bug_status>
          <resolution></resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=174374</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="everdom">everdom.g</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bugs-noreply</cc>
    
    <cc>mcatanzaro</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>884904</commentid>
    <comment_count>0</comment_count>
    <who name="everdom">everdom.g</who>
    <bug_when>2013-05-06 04:14:50 -0700</bug_when>
    <thetext>Recently I have been devoting myself to  development of a browser-like software using webkitgtk on the platform of Ubuntu 13.04 AMD 64 distribution. But I find a fairly inscrutable problem when webkit rending Chinese font. The situation is described below:
    Firstly, The official webkit demo /usr/lib/webkitgtk-3.0-0/libexec/GtkLauncher can&apos;t rend the correct font which a webpage assigned by css definition. For example, a webpage assigned the font family as &quot;Microsoft Yahei&quot;，but the GtkLauncher just rend Simsun font for all text. I should considered that it is because that I haven&apos;t install the MS Yahei font into my system. But after I install it, the problem remains. And in other browsers using webkit like chrome, it always rend the right font, including the Chinese font.
    When I try to solve the problem, I find some tips, but still block. I have noticed a phenomenon: when setting the font family to Chinese name instead of English name in the css definition, it does rend the correct font!. In other words, I just alter the the definition like this:
    some-element{font-family:&quot;Microsoft Yahei&quot;}  ---&gt; some-element{font-family:&quot;微软雅黑&quot;}
    Then it works! And I checked other Chinese font like WenQuanyi font family, it appears the same problem. But generally speaking, you&apos;d better to write in English when set a font-family name attribute . But now the English name don&apos;t work, on the contrary, the Chinese name works, it is really confused.
    In addition, I still can&apos;t distinguish where the bug exists, is it in webkitgtk or Ubuntu 13.04 system. I have searched the solution for some time on the Internet, and tried some method, but all failed. So I commit this bug to you, expect your reply!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1327669</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2017-07-11 13:09:09 -0700</bug_when>
    <thetext>Hi, do you know of any freely-distributable fonts that exhibit this bug? Even better if it&apos;s a font that&apos;s already commonly available in Linux distributions. I think Timothy might have found the problem in bug #174374, but it&apos;s hard to be sure without seeing a small example that demonstrates exactly what&apos;s going wrong. It would be really wonderful if you could provide a small HTML testcase.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>