Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: geometric on April 09, 2021, 08:20:16 am

Title: Font Ligatures Support
Post by: geometric on April 09, 2021, 08:20:16 am
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?
Title: Re: Font Ligatures Support
Post by: Miguel Gimenez on April 09, 2021, 08:44:24 am
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
Title: Re: Font Ligatures Support
Post by: geometric on April 09, 2021, 08:50:36 am
Thank you very much! I'm new to Code::Blocks and didn't know this existed.
Title: Re: Font Ligatures Support
Post by: geometric on April 09, 2021, 09:08:11 am
However, I noticed that the autocomplete suggestions become very large. Is it cause by this setting or not?
Title: Re: Font Ligatures Support
Post by: Miguel Gimenez on April 09, 2021, 11:42:34 am
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 (https://sourceforge.net/p/codeblocks/tickets/835) for more information.