News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Why Code::Blocks does not support font anti aliasing?

Started by Alex Mercer, March 31, 2019, 05:50:20 PM

Previous topic - Next topic

Alex Mercer

In many sites the best font for IDEs is Inconsolata, and when it comes to Code::Blocks it does not support anti-aliasing for these type of fonts. It is the 17th version but it still doesn't support anti-aliasing. Why don't the developers of this IDE provide this facility?

oBFusCATed

What do you mean? Which OS? How many dpis have you monitor? Screenshot comparing it to another editor where AA works?
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Alex Mercer

#2
I am using windows. The first picture is from sublime and the other one is from the codeblocks. Both are set to Inconsolata font.
I have attached it for you.

oBFusCATed

(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Alex Mercer

#4
I couldn't put an image using the image tag, so i attached it. I need a little help with these image tags syntax. The images are in my desktop.

stahta01

I would suggest using a larger font size in Code::Blocks and see if that improves the font appearance.

Tim S.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

oBFusCATed

Does this problem happen with all fonts? Does this font work in notepad++? CodeLite?
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

eranif

Attached are two screenshots taken from latest CodeLite. The first uses the Inconsolata  As you can see, its smooth. The second shows the support for ligatures in wxSTC.

I am not sure if you guys are doing this for CodeBlocks, but to get the smooth look + support ligature (for Windows), you will need to change wx/setup.h a little bit:

Enable wxGCDC:


#define wxUSE_GRAPHICS_CONTEXT 1


and also this is enabled:


#define wxUSE_GRAPHICS_DIRECT2D 1


Now, in all wxSTC subclasses, I have this call enabled for Windows:

wxStyledTextCtrl::SetTechnology(wxSTC_TECHNOLOGY_DIRECTWRITE);


Inconsolata smooth:



Fira Code (font with ligatures, IMO, the best coding font) :



HTH,
Eran

oBFusCATed

We're not doing this yet. But I wanted to know if it is related or not.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]