[QScintilla] wrong cursor moving

David Hess dhess at fishsoftware.com
Fri Nov 5 14:03:56 GMT 2010


I tried applying that patch in our environment and still see problems with cursor positioning.

I'm using QScintilla with the Python lexer and setting the font to Courier New, 13 points and bold.

The cursor positioning works with plain text that is not colorized. Anything that gets colorized is being rendered squashed horizontally by just a fraction.

On top of that, the horizontal layout of colorized and non-colorized text changes if you highlight it via selection.

So it seems not to just be a cursor positioning issue but also a layout problem.

Would be glad to help get this fixed.

Dave

On Nov 5, 2010, at 5:49 AM, petr at scribus.info wrote:

> 
> ok, things moved quickly.
> 
>> I tested it on various OSes too - except windows. So here is the result:
>> 
>> http://bugreports.qt.nokia.com/browse/QTBUG-15039
> 
> after discussion with qt guys they suggested to use QFontMetricsF which
> returns more precise results for find width - yes, mac uses non-int
> sizes. This change should not have a performance affect (they said).
> 
> So I implemented a qscintilla patch (against 2.4.5):
> 
> http://pastie.org/1274576
> 
> It works on mac with all font types (fixed/variable widths and various
> sizes). Apps using qscintilla don't look ugly now and can be used.
> 
> Let me know, if the patch can be accepted or if I should rewrite it -
> eg. to use QFontMetricsF only for Q_WS_MAC etc.
> 
> cheers,
> petr
> 
> _______________________________________________
> QScintilla mailing list
> QScintilla at riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/qscintilla
> 



More information about the QScintilla mailing list