Author Topic: Font Ligatures Support  (Read 739 times)

Offline geometric

  • Single posting newcomer
  • *
  • Posts: 3
Font Ligatures Support
« 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?

Offline Miguel Gimenez

  • Lives here!
  • ****
  • Posts: 711
Re: Font Ligatures Support
« Reply #1 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

Offline geometric

  • Single posting newcomer
  • *
  • Posts: 3
Re: Font Ligatures Support
« Reply #2 on: April 09, 2021, 08:50:36 am »
Thank you very much! I'm new to Code::Blocks and didn't know this existed.

Offline geometric

  • Single posting newcomer
  • *
  • Posts: 3
Re: Font Ligatures Support
« Reply #3 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?

Offline Miguel Gimenez

  • Lives here!
  • ****
  • Posts: 711
Re: Font Ligatures Support
« Reply #4 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 for more information.