Sublime Forum

Specify different font for italics

#1

This has been requested before but seems even more relevant since the advent of programmer monospace fonts with ligatures, few of which include an italic variation. In this case Sublime uses faux italics.

For example, I like Fira Code and want to use italics for keywords like function, let and var. With this font Sublime uses faux italics which look dated, mess with my OCD and screw up spacing when mixed on the same line with non-italics. Other editors support specifying differing fonts for italic and bold type. It’d be great if Sublime could do the same.

:slight_smile:

1 Like

#2

remember this would only work if the fonts have the same metrics, how likely is that? maybe better to just combine the fonts manually?

0 Likes

#3

It may be a problem in the font itself, working well here (the font has ligatures and regular / italic variations):

0 Likes

#4

Combine fonts manually - I wouldn’t know how - any tips?

I’m uncertain on the specifics but it seems pretty straightforward to define different fonts for scopes in vscode. I’m not a fan of cursive fonts for italics but would like to use something fairly clean, eg. Consolas italics with Fira code for the rest.

0 Likes

#5

Is that Operator Mono?

0 Likes

#6

I’ve had a good result combining Fira Code and IBM Plex Italics using monospacifier (https://github.com/cpitclaudel/monospacifier), removing Ligatures I don’t like (<=, >= among others) using Ligaturizer (https://github.com/ToxicFrog/Ligaturizer) and setting the same font name using FontForge.

0 Likes

#7

yep, operator mono with ligatures applied (there’s a github repo with ligas and scripts, but you still have to own the font)

0 Likes