Extended the editor monospaced style to allow to set the weight, italic and underline properties.

Sat, 09 Mar 2013 17:05:49 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sat, 09 Mar 2013 17:05:49 +0100
changeset 2472
4860fe0ed4a6
parent 2470
206ff86e34c8
child 2474
8727522a69d5

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):
         """

eric ide

mercurial