]> asedeno.scripts.mit.edu Git - PuTTY.git/commit
Fix goof in Pango bidi suppression.
authorSimon Tatham <anakin@pobox.com>
Sun, 20 Mar 2016 20:04:26 +0000 (20:04 +0000)
committerSimon Tatham <anakin@pobox.com>
Sun, 20 Mar 2016 20:06:04 +0000 (20:06 +0000)
commit6ef6cb1573a9a587e4912f735ad837f149f50a5a
treea235a9865a4bc0305b969c6c4074a229674e3307
parenteb4730e0bf89ebc2e4e8cb3acf8eae053323f29d
Fix goof in Pango bidi suppression.

When we're displaying bidirectionally active text (that is, text that
the Unicode bidi algorithm will fiddle with), we need to suppress
Pango's bidi because we've already done our own. We were doing this by
calling is_rtl() on each character, and if it returned true,
displaying just that character in a separate Pango call.

Except that, ahem, we were only doing this if the _first_ character
encountered during a scan of the display buffer was rtl-sensitive. If
the first one was fine but a subsequent one was rtl-sensitive, then
that one would just get shoved into the buffer we'd already started.

Running pterm -fn 'client:Monospace 12' and displaying
testdata/utf8.txt now works again.
unix/gtkfont.c