[QScintilla] QScintilla feature request

Phil Thompson phil at riverbankcomputing.com
Sat Sep 15 13:46:33 BST 2007


On Saturday 15 September 2007, Detlev Offenbach wrote:
> On Dienstag, 11. September 2007, Phil Thompson wrote:
> > On Sunday 09 September 2007, Detlev Offenbach wrote:
> > > Hi Phil,
> > >
> > > please add a method font() to QsciScintilla to return the default font,
> > > i.e. nl_font.
> > >
> > > Regards,
> > > Detlev
> >
> > font() is already implemented, but I've changed it to return the value
> > set using setFont().
> >
> > Phil
>
> Thanks. I've just updated to the latest QScintilla2 snapshot and found the
> following strangeness. I am describing it in steps.
>
> Step 1: I am initializing a QScintilla2 based editor and  I am setting the
> font using setFont (e.g. seting it to "Bitstream Vera Sans Mono". Therafter
> font() returns that font.
>
> Step 2: I am adding this editor to a tab widget with
> QTabWidget.addTab(...). After that step, editor.font() returns the
> application default font (in my case "Bitstream Vera Sans".
>
> It seems, that QTabWidget.addTab() changes the font in a way, that doesn't
> get routed through QScintilla2. The display of the text within QScintilla
> doesn't change either.
>
> Therefore I recommend to add a method font() to QScintilla2, that returns
> the nl_font attribute.

That doesn't make any sense to me. The attached script behaves as expected.

Phil
-------------- next part --------------
A non-text attachment was scrubbed...
Name: font.py
Type: application/x-python
Size: 380 bytes
Desc: not available
Url : http://www.riverbankcomputing.com/pipermail/qscintilla/attachments/20070915/72035b10/font.bin


More information about the QScintilla mailing list