[QScintilla] How to enable antialiasing

Phil Thompson phil at riverbankcomputing.com
Sat Dec 12 09:30:32 GMT 2015


On 12 Dec 2015, at 2:45 a.m., Shriramana Sharma <samjnaa at gmail.com> wrote:
> 
> On 12/11/15, Phil Thompson <phil at riverbankcomputing.com> wrote:
>> It will use the Qt default settings. You can use the SCI_SETFONTQUALITY low
>> level API to change the QFont::StyleStrategy that is used when selecting a
>> font.
> 
> Hi Phil and thanks for your reply. Since I'm manually setting the
> lexer font, isn't it sufficient for me to directly set it to the QFont
> object? I tried:
> 
> monospaceFont = QFont("monospace")
> monospaceFont.setHintingPreference(QFont.PreferFullHinting)
> monospaceFont.setStyleStrategy(QFont.PreferAntialias)
> 
> But still I'm getting the same display... Would doing it via Sci make
> a difference?

I don't know - I don't know what the rest of your code is doing.

Phil


More information about the QScintilla mailing list