Sublime Forum

[ST4] Any bold or italic text in my code shows as regular, using Office Code Pro font

#1

After upgrading to ST4, all bold or italic fragments in my code (across different languages) started to be shown as regular ones. It was fine in ST3. I’m using Office Code Pro. If I change to a different font, e.g. Consolas, bold texts come back.

I had "font_options": ["directwrite"], but I also tried with "font_options": ["gdi"], the rendering looks different (different proportions), the italics are back, but the bolds are still gone. Also I would prefer DirectWrite, like I had before.
When I used TTF files of the font, the GDI option didn’t help for italics.

Sublime Text 4 (build 4107)
Windows 10 x64

0 Likes

#2

It seems I had similar issue as in this topic.
I found out, that some glyphs had indeed different widths across different variants. I managed to correct it using FontForge, now it works good.

I only wonder why it was fine in ST3, and it is not fine in ST4. Oh well.

0 Likes

#3

ST4 has a number of changes to font rendering on Windows in order to support color emojis and improve performance. Feel free to submit an issue to the public issue tracker for this.

0 Likes