Sublime Forum

Italic/bold not working with `Roboto Mono` when `directwrite` on Windows

#1

I tried adding font_options:[“italic”, “directwrite”] and that works just as expected.
But bold and italic are lost when they’re set via color scheme.

Maybe it’s related with:

0 Likes

[ST4] Any bold or italic text in my code shows as regular, using Office Code Pro font
Italic/bold not working
#2

This is because Roboto Mono isn’t actually monospaced across variants. See https://github.com/google/fonts/issues/142.

3 Likes

#3

Ah, thanks!

0 Likes

#4

I should note, I believe the reason that it sometimes works without directwrite on is that I believe the GDI font hinting causes the bold and regular variants to be the same width at certain sizes.

2 Likes