<?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>97682</bug_id>
          
          <creation_ts>2012-09-26 07:24:23 -0700</creation_ts>
          <short_desc>[Chromium] Use ipafont instead of kochi-font on Linux DRT</short_desc>
          <delta_ts>2013-04-15 08:48:00 -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>Platform</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</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>
          
          <blocked>97676</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Kenichi Ishibashi">bashi</reporter>
          <assigned_to name="Kenichi Ishibashi">bashi</assigned_to>
          <cc>jshin</cc>
    
    <cc>schenney</cc>
    
    <cc>tony</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>728534</commentid>
    <comment_count>0</comment_count>
    <who name="Kenichi Ishibashi">bashi</who>
    <bug_when>2012-09-26 07:24:23 -0700</bug_when>
    <thetext>As a part of https://bugs.webkit.org/show_bug.cgi?id=97676, I&apos;d like to switch Japanese font on Linux DRT from kochi-fonts to ipafont.

In layout tests, kochi-mincho is used to render Japanese text. However, kochi mincho doesn&apos;t have vhea/vmtx table so it&apos;s not feasible for vertical text tests. This causes regressions with a WIP patch for bug 97676 because the patch assumes that the font have correct vertical metrics. (FontSkia.cpp also has the same assumption)

ipafont has vhea/vmtx tables so I&apos;d like to propose using ipafont instead of kochi font on Linux DRT. I think the benefit of bug 97676 is over supporting broken font (kochi-mincho). The WIP patch of bug 97676 will also fix bug 62841.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>728535</commentid>
    <comment_count>1</comment_count>
    <who name="Kenichi Ishibashi">bashi</who>
    <bug_when>2012-09-26 07:29:14 -0700</bug_when>
    <thetext>Tony, what do you think? If it&apos;s ok, I&apos;ll revise http://code.google.com/p/chromium/wiki/LinuxBuildInstructionsPrerequisites and build/install-build-deps.sh too.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>728616</commentid>
    <comment_count>2</comment_count>
      <attachid>165815</attachid>
    <who name="Kenichi Ishibashi">bashi</who>
    <bug_when>2012-09-26 08:53:21 -0700</bug_when>
    <thetext>Created attachment 165815
Patch

Not sure but webkit-patch doesn&apos;t work. uploading a patch by hand.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>728820</commentid>
    <comment_count>3</comment_count>
    <who name="Tony Chang">tony</who>
    <bug_when>2012-09-26 11:53:12 -0700</bug_when>
    <thetext>What font do most Linux users in Japan use?  For example, which fonts are installed by default by Ubuntu 12.04 when installing the Japanese language support?

Using any font for the tests is fine, but we should try to use the most popular font.  I forget how I picked kochi-mincho.

Here&apos;s how we switch to a different font:
- We need to update install-build-deps.sh to install the new font.
- Install the new font on the Linux the bots.
- Update Tools/DumpRenderTree/chromium/TestShellX11.cpp to use the new font and update the baselines.
- Remove the old fonts from install-build-deps.sh.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>729059</commentid>
    <comment_count>4</comment_count>
    <who name="Kenichi Ishibashi">bashi</who>
    <bug_when>2012-09-26 16:30:45 -0700</bug_when>
    <thetext>(In reply to comment #3)
&gt; What font do most Linux users in Japan use?  For example, which fonts are installed by default by Ubuntu 12.04 when installing the Japanese language support?

I found a proposal page that suggests VL gothic has the highest priority:
http://wiki.debian.org/Fonts/JapanesefontpkgProposal

Unfortunately, VL gothic doesn&apos;t have vhea/vmtx.

I searched the web and realized that kochi fonts are still used as default fonts in some cases. I think most of Japanese users don&apos;t use kochi fonts as default font these days because it&apos;s a low quality font compared with other fonts. However, it seems that we need to keep using kochi fonts because we can&apos;t assume that most users have a font which contains vhea/vmtx table.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>165815</attachid>
            <date>2012-09-26 08:53:21 -0700</date>
            <delta_ts>2012-09-26 08:53:21 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>patch.diff</filename>
            <type>text/plain</type>
            <size>0</size>
            <attacher name="Kenichi Ishibashi">bashi</attacher>
            
              <data encoding="base64"></data>

          </attachment>
      

    </bug>

</bugzilla>