QScintilla/QsciScintillaCompat.py

branch
5_3_x
changeset 2473
c9f484ea061b
parent 2302
f29e9405c851
child 2539
05a2752b476c
equal deleted inserted replaced
2471:36eb585339fc 2473:c9f484ea061b
102 except AttributeError: 102 except AttributeError:
103 rangeHigh = list(range(40, 128)) 103 rangeHigh = list(range(40, 128))
104 104
105 f = font.family().encode() 105 f = font.family().encode()
106 ps = font.pointSize() 106 ps = font.pointSize()
107 weight = -font.weight()
108 italic = font.italic()
109 underline = font.underline()
107 for style in rangeLow + rangeHigh: 110 for style in rangeLow + rangeHigh:
108 self.SendScintilla(QsciScintilla.SCI_STYLESETFONT, style, f) 111 self.SendScintilla(QsciScintilla.SCI_STYLESETFONT, style, f)
109 self.SendScintilla(QsciScintilla.SCI_STYLESETSIZE, style, ps) 112 self.SendScintilla(QsciScintilla.SCI_STYLESETSIZE, style, ps)
113 self.SendScintilla(QsciScintilla.SCI_STYLESETWEIGHT, style, weight);
114 self.SendScintilla(QsciScintilla.SCI_STYLESETITALIC, style, italic);
115 self.SendScintilla(QsciScintilla.SCI_STYLESETUNDERLINE, style, underline);
110 116
111 def linesOnScreen(self): 117 def linesOnScreen(self):
112 """ 118 """
113 Public method to get the amount of visible lines. 119 Public method to get the amount of visible lines.
114 120

eric ide

mercurial