简体   繁体   中英

How to enable Recursive (OpenType) font code ligature in Visual Studio Code?

More specifically

How to enable code Discretionary Ligatures "dlig" feature of Recursive font ?

Usual fontLigatures settings.json configuration doesn't work.

"editor.fontFamily": "Recursive Sans Linear"
"editor.fontLigatures": true // Do not work :-/

To enable code ligatures edit VSCode settings.json with desired OpenType features:

// Code ligatures ON
"editor.fontLigatures": "'dlig'"
// BONUS: other feature set (see below)
"editor.fontLigatures": "'ss01', 'ss02', 'ss03', 'ss04', 'ss05', 'ss06', 'zero', 'onum'"

递归连字特征

Sources:

Stephen Nixon's article on recursive.design

GitHub VSCode related issue

See also: Microsoft OpenType spec

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM