DEV Community

Discussion on: Why you should use a developer font

Collapse
 
emptyother profile image
emptyother

Noticed Microsoft's latest-ish version of Cascadia Code has italic ligatures in it. It makes italic text into handwriting-like. Found it useful to quickly identify and ignore language keywords when reading code. Example:

Code example with italic ligatures

To enable those in vscode one couldnt just set "editor.fontLigatures": true but had to add a list of strings that I dont understand what does: "editor.fontLigatures": "'ss01', 'ss02', 'ss03', 'ss04', 'ss05', 'ss06', 'zero', 'onum'". What does that do exactly? Why isnt it enabled if I just say "true"?

Collapse
 
anthonyjdella profile image
offline

Yea Cascadia Code is so nice!!

Collapse
 
chustedde profile image
chustedde

The ss## things stand for different Stylistic Sets in the font, zero means you want to use the slashed zero, and onum means to use Oldstyle Figures for the numbers, so numbers are at varying heights. (Info found here: docs.microsoft.com/en-us/typograph...)

As far as why you can't just specify true and have it turn on all the ligature options, I'm not sure, but possibly because there would be conflicting options in this particular font? I'm also curious now if someone knows the answer to that one.