News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

Font Ligatures Support

Started by geometric, April 09, 2021, 08:20:16 AM

Previous topic - Next topic

geometric

Hi, I use JetBrains Mono, Fira Code and a few other fonts which support font ligatures, in which two characters are combined to form one. (a common example is != becoming ≠) The font ligatures work in other editors such as VS Code, and other JetBrains IDEs. Is it possible that Code::Blocks can support ligatures in the near future?

Miguel Gimenez

20.03 already supports them, I'm using Fira Code right now.

You just need to set Settings->Editor->Other editor settings->Technology to Direct Write and Settings->Editor->Editor settings->Font to Fira Code

geometric

Thank you very much! I'm new to Code::Blocks and didn't know this existed.

geometric

However, I noticed that the autocomplete suggestions become very large. Is it cause by this setting or not?

Miguel Gimenez

That's a bug with text size calculation when using DirectWrite. I have it fixed on my system, but my patch was not accepted (and 20.03 was already launched anyway). See ticket 835 for more information.