Sat, 09 Mar 2013 17:05:49 +0100
Extended the editor monospaced style to allow to set the weight, italic and underline properties.
QScintilla/QsciScintillaCompat.py | file | annotate | diff | comparison | revisions |
--- a/QScintilla/QsciScintillaCompat.py Sat Mar 09 15:44:37 2013 +0100 +++ b/QScintilla/QsciScintillaCompat.py Sat Mar 09 17:05:49 2013 +0100 @@ -108,9 +108,15 @@ f = font.family().encode() ps = font.pointSize() + weight = -font.weight() + italic = font.italic() + underline = font.underline() for style in rangeLow + rangeHigh: self.SendScintilla(QsciScintilla.SCI_STYLESETFONT, style, f) self.SendScintilla(QsciScintilla.SCI_STYLESETSIZE, style, ps) + self.SendScintilla(QsciScintilla.SCI_STYLESETWEIGHT, style, weight); + self.SendScintilla(QsciScintilla.SCI_STYLESETITALIC, style, italic); + self.SendScintilla(QsciScintilla.SCI_STYLESETUNDERLINE, style, underline); def linesOnScreen(self): """