#1581 Font change is not possible with V3.3.2 and newer

Bug
closed-invalid
4
2014-02-28
2014-02-27
Frank
No

Platform Windows C++ environment
with Version 3.3.1 the font Change with the message SCI_STYLESETFONT will work as expected. After that Version (for example V3.3.2 and newer) the font wont be changed. It seems that a standard font is loaded and the font change message is ignored.

Discussion

  • Frank

    Frank - 2014-02-27

    More Info:
    it will work until i set the "fn(ptr, SCI_SETLEXER, SCLEX_CPP, 0)" message. After that it is not possible to change the font.

     
  • Neil Hodgson

    Neil Hodgson - 2014-02-27

    Works fine in SciTE 3.3.9 even after setting a lexer.

     
  • Neil Hodgson

    Neil Hodgson - 2014-02-27
    • labels: Font --> Font, scintilla
    • status: open --> open-works-for-me
    • assigned_to: Neil Hodgson
    • Priority: 5 --> 4
     
  • Frank

    Frank - 2014-02-28

    Thats strange...
    i have downloaded the last binary version of SciTe and have used the dll from there. Unfortunately there is exact the same problem for me.

    In my init i have used only these three lines of code:
    fn(ptr, SCI_SETLEXER, SCLEX_CPP, 0);
    fn(ptr, SCI_STYLESETFONT, STYLE_DEFAULT, (LPARAM)"Consolas");
    fn(ptr, SCI_STYLESETSIZE, STYLE_DEFAULT, 10);

    Above code will not work until i comment the SCI_SETLEXER line.

    Maybe also interesting is that i can read back the current font Settings and they are correct. But the font is not shown in my Scintilla window.

    The exact same code will work without any problems with Scintilla v331. Is there something changed with the lexers and the fonts between v331 and v332? Maybe i am doing something wrong there.

     
  • Neil Hodgson

    Neil Hodgson - 2014-02-28

    The lexer is setting the styles of the text to SCE_C_DEFAULT, SCE_C_COMMENT and so forth. That is the lexer's job. There is no bug here.

     
  • Neil Hodgson

    Neil Hodgson - 2014-02-28
    • status: open-works-for-me --> open-invalid
     
  • Frank

    Frank - 2014-02-28

    Ok, now i have set every style to the same font and it works. I will check wich style i must use, i was only irritated that it was working with v331. Sorry that i have taken your time with that.

    Can be closed, thank you very much.

     
  • Neil Hodgson

    Neil Hodgson - 2014-02-28
    • status: open-invalid --> closed-invalid
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks