<?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>167557</bug_id>
          
          <creation_ts>2017-01-28 19:41:11 -0800</creation_ts>
          <short_desc>[FreeType] Enable ligatures and kerning in the fast font layout path</short_desc>
          <delta_ts>2025-08-07 17:06:24 -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>WebKit Nightly Build</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=160251</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=183285</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=297088</see_also>
          <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>206208</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Michael Catanzaro">mcatanzaro</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>aperez</cc>
    
    <cc>bugs-noreply</cc>
    
    <cc>fred.wang</cc>
    
    <cc>mcatanzaro</cc>
    
    <cc>mmaxfield</cc>
    
    <cc>realh69</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1271091</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2017-01-28 19:41:11 -0800</bug_when>
    <thetext>We should enable ligatures and kerning in the fast font layout path, as performed by Apple&apos;s ports.

Myles has hinted that this might require implementing Font::applyTransforms for FreeType, though I&apos;m not sure what all this entails.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1271093</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2017-01-28 19:57:54 -0800</bug_when>
    <thetext>We should also investigate bug #102603, which I don&apos;t understand.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1283907</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2017-03-06 13:23:38 -0800</bug_when>
    <thetext>*** Bug 149642 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1419936</commentid>
    <comment_count>3</comment_count>
    <who name="Adrian Perez">aperez</who>
    <bug_when>2018-05-02 17:20:43 -0700</bug_when>
    <thetext>As of r230559 (bug #183285) the GTK port is using always the
complex text code path. Note that this is still relevant for
other ports using FreeType (e.g. WPE).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1779684</commentid>
    <comment_count>4</comment_count>
    <who name="Myles C. Maxfield">mmaxfield</who>
    <bug_when>2021-07-26 22:21:29 -0700</bug_when>
    <thetext>I&apos;m happy to work on this, as a part of https://bugs.webkit.org/show_bug.cgi?id=206208. I will need advice from someone who is more familiar with Harfbuzz, though.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1779727</commentid>
    <comment_count>5</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2021-07-27 05:03:06 -0700</bug_when>
    <thetext>Hi, thanks for the offer to help. The simple text path does not use harfbuzz at all. harfbuzz is only used for the complex text path. (See bug #102603, which may or may not be obsolete, I&apos;m not sure.) The simple text path uses FreeType directly.

Well, at least I think so?

(In reply to Michael Catanzaro from comment #0)
&gt; We should enable ligatures and kerning in the fast font layout path, as
&gt; performed by Apple&apos;s ports.

I don&apos;t know enough about FreeType to know whether this is actually possible. It&apos;s certainly a lot less important than it used to be since GTK no longer uses simple text at all, except when forced by environment variable, so nobody will ever see it. So this really only matters for WPE. I wonder if it&apos;s time for WPE to switch to the complex text path?</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>