1
1
mirror of https://github.com/tonsky/FiraCode.git synced 2024-07-02 15:06:34 +03:00

Updated How to enable stylistic sets (markdown)

Nikita Prokopov 2023-04-27 15:58:10 +02:00
parent e0d6145a76
commit 45f728556b

@ -124,4 +124,20 @@ https://www.macworld.com/article/3052388/how-to-access-advanced-opentype-feature
If your app does not allow you to control stylistic sets, try generating new font file that has them built-in:
- https://github.com/twardoch/fonttools-opentype-feature-freezer
- https://mutsuntsai.github.io/fontfreeze/
Depending on your needs this tool might be sufficient, but it only supports fixed single character replacements.
It for example does not support `>=` `<=` from `ss02`, `&&` from `ss03`, `<$` `<$>` `$>` from `ss04`,
and `==` `===` `!=` `!==` from `ss08`.
It also does not support context-sensitive stylistic sets like the thin escaping backslash from `ss06`.
- https://mutsuntsai.github.io/fontfreeze/
Depending on your needs this tool might be sufficient. It supports more than the previous tool,
but still not everything this font uses.
It for example does not support `<$` `<$>` `$>` from `ss04`.
Besides that, it makes the Font version `1.000` and also removes all other metadata like copyright, licence and so on.
- The best option is the build of this project itself. It needs some setup like installing Python and some
modules, or having a Docker daemon running, or using GitHub Actions for it, and it needs much longer than
the previous options. But the end result properly supports all stylistic sets and preserves the metadata.
Additionally, you can build from the latest state and thus can get new features (but of course also new
bugs) that were implemented since the last release.
The `README` contains up-to-date information on how to build the font with wanted stylistic sets baked in.