Menu

#1297 Icons are so big and text is so tiny on HiDPI display

Undefined
fixed
hidpi (13)
Bug_Report
2022-09-29
2022-08-10
No

The icons are so big and text is so tiny with the latest nightly build 12859

Name                    : Code::Blocks
Version                 : svn-r12859
SDK Version             : 2.19.0
Scintilla Version       : 3.7.5
Author                  : The Code::Blocks Team
E-mail                  : info@codeblocks.org
Website                 : https://www.codeblocks.org
OS                      : Windows 10 (build 19044), 64-bit edition
Scaling factor          : 2.500000
Detected scaling factor : 2.500000
Display PPI             : 240x240
Display count           : 1
Display 0 (\\.\DISPLAY1): XY=[0,0]; Size=[3840,2160]; Primary

wxWidgets Library (wxMSW port)
Version 3.1.7 (Unicode: wchar_t, debug level: 1),
compiled at Aug  6 2022 17:42:37

Runtime version of toolkit used is 10.0.

screenshots are attached

5 Attachments

Related

Tickets: #1302
Tickets: #1471

Discussion

  • Mehdi Chinoune

    Mehdi Chinoune - 2022-08-10

    By text I mean Editor text.

     
  • Miguel Gimenez

    Miguel Gimenez - 2022-08-10

    Starting with wx3.1.6 many controls, wxMenu among them, manage image scaling internally (see wxBitmapBundle). I think images are being scaled twice, but I do not use HiDPI so I can not test.

     
  • Miguel Gimenez

    Miguel Gimenez - 2022-08-10
    • status: open --> accepted
     
  • Miguel Gimenez

    Miguel Gimenez - 2022-08-12
    • assigned_to: Miguel Gimenez
     
  • Miguel Gimenez

    Miguel Gimenez - 2022-08-12

    Adapted Spell Checker to use wxBitmapBundle, [r12861].
    More changes will follow.

     

    Related

    Commit: [r12861]

  • Miguel Gimenez

    Miguel Gimenez - 2022-08-16

    Added cbArtProvider::CreateBitmapBundle(), [r12865].

    I will pause work on the ticket until mid september. Meanwhile, I will release ownership just in case somebody wants to work on it.

     

    Related

    Commit: [r12865]

  • Miguel Gimenez

    Miguel Gimenez - 2022-08-16
    • assigned_to: Miguel Gimenez --> nobody
     
  • Miguel Gimenez

    Miguel Gimenez - 2022-08-16

    Added cbArtProvider::CreateBitmapBundle(), [r12865].

    I will pause work on the ticket until mid september. Meanwhile, I will release ownership just in case somebody wants to work on it.

     

    Related

    Commit: [r12865]

  • Miguel Gimenez

    Miguel Gimenez - 2022-09-09
    • assigned_to: Miguel Gimenez
     
  • Miguel Gimenez

    Miguel Gimenez - 2022-09-09

    AnnoyingDialog fixed in [r12884], see CB_05.jpg in the original post for reference.

     

    Related

    Commit: [r12884]

    • Mehdi Chinoune

      Mehdi Chinoune - 2022-09-26

      Not fixed here!

       
  • Miguel Gimenez

    Miguel Gimenez - 2022-09-10

    Notebook icon sizes fixed in [r12887], see CB_01.jpg in the original post for reference.

     

    Related

    Commit: [r12887]

  • Miguel Gimenez

    Miguel Gimenez - 2022-09-12
    • status: accepted --> fixed
     
  • Miguel Gimenez

    Miguel Gimenez - 2022-09-12

    Fixed menu, button and toolbar sizes in [r12889].

    Font size can be corrected using Settings->Editor. I will close this ticket as fixed, if there is another problem with HiDPI please open a new one for better tracking.

     

    Related

    Commit: [r12889]

    • Mehdi Chinoune

      Mehdi Chinoune - 2022-09-26

      I am still considering the font size as an issueز
      I have to increase font size to 36 (~= 14*2.5) to get the same size as the previous 14
      the code hints look so big (see attachement CB_05), It should look like CB_08.

       

      Last edit: Mehdi Chinoune 2022-09-26
  • Mehdi Chinoune

    Mehdi Chinoune - 2022-09-12

    Thanks, waiting for the next nightly build to test your changes.

     
  • Miguel Gimenez

    Miguel Gimenez - 2022-09-27

    The AnnoyingDialog looks fine here (see attachment), although I am using wx3.2.1 and my test scale factor is 1.75 (I do not have a HiDPI monitor, and debugging this is a pain).

    Regarding the font, I will follow ticket [#1302]. Meanwhile, you can try changing the font rendering technology: Go to Settings -> Editor -> General settings -> Other editor settings and select Technology = DirectWrite.

     

    Related

    Tickets: #1302

    • Mehdi Chinoune

      Mehdi Chinoune - 2022-09-29

      Changing Font rendering technology to DirectWrite fixes the font issue.
      Why Is it not enabled by default? Is Windows XP still supported?

      But there are many remaining big icons, I will report bug about them

       
  • Miguel Gimenez

    Miguel Gimenez - 2022-09-29

    I am currently working on ThreadSearch, next will be DoxyBlocks, but I know there are more. If you make a list in a separate ticket it will be easier for me.

    I progress slowly because, as I said, I do not have a HiDPI monitor so testing is a pain.

     

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.