<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [GTK] DOM operations could behave unexpectedly with certain fonts or font sizes"
   href="https://bugs.webkit.org/show_bug.cgi?id=149703">149703</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[GTK] DOM operations could behave unexpectedly with certain fonts or font sizes
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>WebKit
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>WebKit Nightly Build
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Unspecified
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Unspecified
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>Normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P2
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>WebKit Gtk
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>webkit-unassigned&#64;lists.webkit.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>tpopela&#64;redhat.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>cgarcia&#64;igalia.com, mcatanzaro&#64;igalia.com, mrobinson&#64;webkit.org, yoon&#64;igalia.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=262248" name="attach_262248" title="test-case">attachment 262248</a> <a href="attachment.cgi?id=262248&amp;action=edit" title="test-case">[details]</a></span>
test-case

There is a bug in ?freetype/cairo/webkit? that for some fonts and font sizes the DOM operations does not behave as it should. The cause is well document in <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED INVALID - [Cairo, FreeType] Incorrect baseline positioning &amp; line spacing due to rounding"
   href="show_bug.cgi?id=102374">https://bugs.webkit.org/show_bug.cgi?id=102374</a> .

As it is mentioned in <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED INVALID - [Cairo, FreeType] Incorrect baseline positioning &amp; line spacing due to rounding"
   href="show_bug.cgi?id=102374#c44">https://bugs.webkit.org/show_bug.cgi?id=102374#c44</a> and <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED INVALID - [Cairo, FreeType] Incorrect baseline positioning &amp; line spacing due to rounding"
   href="show_bug.cgi?id=102374#c45">https://bugs.webkit.org/show_bug.cgi?id=102374#c45</a> things should be fixed for freetype &gt;= 2.4.6, but the truth is that the change in freetype was reverted later ( as you can read in <a href="http://lists.nongnu.org/archive/html/freetype-devel/2013-01/msg00070.html">http://lists.nongnu.org/archive/html/freetype-devel/2013-01/msg00070.html</a> ).

I'm attaching a test case that will fail on trunk as well as on WK1 (it the background should be red and caret should be on the end of the first line instead of second line). Actually this is what we are using in Evolution and it is broken for someone ( <a href="https://bugzilla.gnome.org/show_bug.cgi?id=749712">https://bugzilla.gnome.org/show_bug.cgi?id=749712</a> ).

I think that there are two ways of solving it. Do it like EFL: basically enabling subpixel layout (applying <a href="http://trac.webkit.org/changeset/140111">http://trac.webkit.org/changeset/140111</a> ) or what I've tried on current master is to apply the proposed patch from <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED INVALID - [Cairo, FreeType] Incorrect baseline positioning &amp; line spacing due to rounding"
   href="show_bug.cgi?id=102374#c44">https://bugs.webkit.org/show_bug.cgi?id=102374#c44</a> . With the latter the test case succeeded.

What are your opinions? Especially Martin's as he was quite active around it.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>