User forums > Help

[SOLVED] Code::Blocks 17.12 blurry text on Windows

<< < (2/4) > >>

ollydbg:
I'm using a 14in notebook, which is 1920*1080. I also feel C::B is blur, and I use this method to solve the issue. See here: Re: CodeBlocks' font is quite blur compare with other applications under Windows 7 and the whole thread for the discussion.

aGerman:
Thanks for your info, ollydbg.
Of course I searched the forum for similar threads before I opened a new topic. I also already read this thread. As I stated ClearType is activated and the rest of the linked thread is about compiling C::B by yourself. At least that's what I understood. Please correct me if I'm wrong and instead you changed the executable in a HEX editor to update these values.

Steffen

stahta01:
Try right clicking on the codeblocks.exe file and looking at Compatibility tab.

I suggest trying the "Override High DPI"; this is just a guess.

The thread implied the adding of an manifest file or the editing of a manifest file.
Edit: The fix was adding an external management file for Windows XP; I do not see a fix for Windows 10; but, I suggest trying the Compatibility setting above and see if it work. I am on Windows 10 32 bit; but, the fonts has looked blurry to me for years on this computer; so, I can not test any thing.

Tim S.

aGerman:

--- Quote from: stahta01 on January 02, 2018, 05:28:20 pm ---I suggest trying the "Override High DPI"; this is just a guess.
--- End quote ---

Your guess did the trick, Tim! Thank you very much :D That'll certainly helpful for other users, too.

Steffen

aGerman:
Addendum for those who use Code::Blocks as portable IDE

Tim's suggestion creates a registry setting on the computer that you're currently working on.
(HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers)
That means if you run Code::Blocks e.g. from a USB pen drive on different machines (like I do) you would have to renew this setting on every computer that you're using it. To get rid of this annoying settings you can just write a batch script (ASCII text file with extension .bat instead of .txt) where you set the __COMPAT_LAYER environment variable to the value used to override High DPI and run codeblocks.exe. It's just one line of script code.

_CodeBlocks.bat

--- Code: ---@set "__COMPAT_LAYER=~ HIGHDPIAWARE" & start "" /max "codeblocks.exe"
--- End code ---
Save it in the same folder along with codeblocks.exe and run this script instead.

Steffen

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version