Comment 4 for bug 37828

Revision history for this message
James Henstridge (jamesh) wrote : Text rendered incorrectly in presence of ligatures

For these tests, I am using fairly recent Dapper, containing the following:

  firefox 1.5.dfsg+1.5.0.1-1ubuntu10
  libgtk2.0-0 2.8.16-1ubuntu1
  libpango1.0-0 1.12.0-0ubuntu1

When rendering text on web pages, if a ligature is encountered (e.g. "ff", "fi", "ffi", etc) the ligature glyph gets rendered as expected but the advance of only the first character is used. This results in the characters after the ligature being drawn over the top of the ligature.

If I select text such that the selection begins or ends in the middle of the ligature, the spacing is corrected (since the ligature isn't used). This problem seems to be restricted to Firefox -- other GTK/Pango apps don't exhibit these problems.