Menu

#835 wxSTC popups' font bigger than expected when using DirectWrite

Release_xx.yy
fixed
wxScintilla (4)
Bug_Report
2022-06-02
2019-06-03
No

The font used in Code Completion popups is bigger than expected when using Direct Write technology, so part of the text in the ListBox is ellipsized. Discussion started in the forum:

http://forums.codeblocks.org/index.php/topic,23295.msg158707.html#msg158707

and fix suggestions by New Pagodi:

http://forums.codeblocks.org/index.php/topic,23295.msg158730.html#msg158730

Related

Tickets: #1016

Discussion

  • Miguel Gimenez

    Miguel Gimenez - 2019-06-04

    This patch fixes the issue while wxWidgets' devs fix wxSTC. It follows the first of New Pagodi's suggestions.

    The truncation makes Code Completion hard to use with DirectWrite, so I think the patch is very helpful.

     
    • Helder Batalha

      Helder Batalha - 2020-09-20

      I have tested it. It built fine, however when I open it and I go to settings->Editor/Environment and I hit 'ok' or 'cancel' (I don't even have to make a change) CB will crash and close, don't know why, maybe I did something wrong because I had a problem following the patch file.

       
  • Teodor Petrov

    Teodor Petrov - 2019-06-04

    I'm reluctant to introduce patches on our own. I prefer if the code in wxSTC is committed first and then I just sync it. If you're really interested in this being fixed please try to prepare a patch for wxSTC and work with New Pagodi and other wx devs on merging it. Then I can easily back port it. There are the popup fixes I have in the pipeline to backport.

     
  • Teodor Petrov

    Teodor Petrov - 2020-02-23

    @Miguel What happened with this issue? Has there being a fix in the wx-master?

     
  • Miguel Gimenez

    Miguel Gimenez - 2020-02-24

    wx-master pulled 19/02/2020 still fails, screen capture is attached

     
  • Miguel Gimenez

    Miguel Gimenez - 2020-02-24

    I have just created a ticket in wxTrac

    EDIT: ticket removed because C::B uses its own version of STC

     

    Last edit: Miguel Gimenez 2020-02-24
  • Miguel Gimenez

    Miguel Gimenez - 2020-06-27

    This problem (and others closely related to DirectWrite) have just been fixed in wxSTC:

    Merge branch 'stc-tech-fix'

     
  • Teodor Petrov

    Teodor Petrov - 2020-06-27
    • Type: Undefined --> Bug_Report
    • Milestone: Next_Nightly --> Release_xx.yy
     
  • Teodor Petrov

    Teodor Petrov - 2020-09-19

    Duplicate in [#1016]

     

    Related

    Tickets: #1016

  • bluehazzard

    bluehazzard - 2022-05-30

    I think i hit this problem with the clang cc plugin...
    @wh11204 do you have any updates on this?

     
  • Miguel Gimenez

    Miguel Gimenez - 2022-05-31

    Currently I am using my patch in this thread. I will review this issue tomorrow.

     

    Last edit: Miguel Gimenez 2022-06-01
  • Miguel Gimenez

    Miguel Gimenez - 2022-06-01

    I have updated the patch slightly, can you check it?

    Thank you.

     
  • Miguel Gimenez

    Miguel Gimenez - 2022-06-01
    • assigned_to: Miguel Gimenez
     
  • Miguel Gimenez

    Miguel Gimenez - 2022-06-02
    • status: open --> fixed
     
  • Miguel Gimenez

    Miguel Gimenez - 2022-06-02

    Fixed in [r12826].

     

    Related

    Commit: [r12826]

  • bluehazzard

    bluehazzard - 2022-06-02

    Yes this fixed the problem. Thank you!

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.