QScintilla/QsciScintillaCompat.py

branch
5_3_x
changeset 2473
c9f484ea061b
parent 2302
f29e9405c851
child 2539
05a2752b476c
--- a/QScintilla/QsciScintillaCompat.py	Sat Mar 09 15:43:46 2013 +0100
+++ b/QScintilla/QsciScintillaCompat.py	Sat Mar 09 17:05:49 2013 +0100
@@ -104,9 +104,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):
         """

eric ide

mercurial