A problem just turned up with Scintilla on Fedora 7. The default
font on Fedora, Sans, now has ligatures enabled. Character sequences
like "fi" and "fl" are drawn as a composite joined together block
with, for example the cross bar of the "f" joining the dot of the "i".
This makes the GTK+ font code, Pango, treat the sequence as a single
cluster which causes strange positioning and drawing. The caret will
not draw between the "f" and the "i" and instead has two stops after
the "i". Its even worse for selections that include a ligature with
text jumping around as the selection is made.

  To improve this, I have modified the GTK+ layout code to split the
ligature's space over the bytes that make up the cluster. At small
sizes, this appears to completely fix the problem but if the size is
zoomed to about 3 times normal, there is still some movement. It may
be possible to fix this some more in the future.

  Updated code committed to CVS and available from
http://scintilla.sourceforge.net/scite.zip Source

  Neil
_______________________________________________
Scintilla-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scintilla-interest

Reply via email to