-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
How to enable stylistic sets
Stylistic sets allow you to access additional, optional parts of the font on a per-feature basis. In Fira Code, they allow you to enable/disable alternative character variants.
Fira Code v2 supports these stylistic sets:
You can enable stylistic sets only if your editor supports it.
Go to Atom
-> Stylesheet
, add:
atom-text-editor {
font-feature-settings: "ss01", "ss02", "ss03", "ss04", "ss05", "ss06", "zero", "onum";
}
Go to Sublime Text
-> Preferences
-> Settings
, add:
"font_options": ["ss01", "ss02", "ss03", "ss04", "ss05", "ss06", "ss19", "ss20"]
(for now Sublime Text does not allow you to specify zero
and onum
features, but they are repeated as ss19
and ss20
.
Via editing electron-browser/index.html
, see https://marketplace.visualstudio.com/items?itemName=be5invis.vscode-custom-css
In a recent patch of VS Code (microsoft/vscode#82153), it will be able to define
"editor.fontLigatures": "'ss01', 'ss02', 'ss03', 'ss04', 'ss05', 'ss06', 'zero', 'onum'"
in settings.json
without hacking the editor's CSS. It is not clear that this feature will be merged into any future releases of VS Code.
https://github.com/microsoft/vscode/issues/10435#issuecomment-545513026
.monaco-editor {
font-feature-settings: "ss01", "ss02", "ss03", "ss04", "ss05", "ss06", "zero", "onum";
}
This might be an option if your editor does not let you choose stylistic sets on the fly https://github.com/twardoch/fonttools-utils/tree/master/pyftfeatfreeze
Fira Code
💻 – Home – Wiki – Issues – Suggestions
Enabling: Atom | VS Code | IntelliJ | BBEdit | Brackets | Emacs | GoormIDE | Cloud9 | MacVim | Notepad++ | RStudio | Sublime Text | Visual Studio | MATLAB
Troubleshooting
Stylistic sets
Language Coverage
OSes/Tools: Linux | Chrome devtools | LaTeX | Chrome OS terminal