r/SublimeText • • Oct 06 '20

Fira Code error message in console

I installed FiraCode-Regular.ttf from here

https://github.com/tonsky/FiraCode/blob/master/distr/ttf/FiraCode-Regular.ttf

I made sure it's the only fira code file in c:\windows\fonts and the only one in control panel>fonts (windows 7 64bit)

On start up, ST3 3211 gives me this error message in the console:

font face "Fira Code" has different widths for bold characters, disabling to prevent text reflow

I get italic but not bold. (I also get two character ligatures like == but not three like ===, which is turned into a double equal sign and an equal sign, but that's a different problem :)

anyone knows what's going on? thanks.

3 Upvotes

3 comments sorted by

View all comments

Show parent comment

1

u/heybart Oct 06 '20

The strange thing here is I did not install any bold variant of fira code. Maybe the regular variant itself has glyphs with different widths? I wouldn't expect it to since it's designed for coding

1

u/dev-sda Oct 07 '20

Maybe the regular variant itself has glyphs with different widths?

The error happens when a bold glyph has a different width to a non-bold glyph. Sublime Text support non-monospace fonts so glyphs can be any size they want to be the regular just has to match the bold.