mishamyrt / Lilex

🤘Open source programming font
https://lilex.myrt.co
SIL Open Font License 1.1
734 stars 10 forks source link

Permanently enable features #3

Closed walski closed 1 year ago

walski commented 3 years ago

Hey, is there a way I can build this font while permanently enabling features on it? I want to use it in an editor where it seems as if I cannot access the variants offered through it's configuration. So would it be possible to turn them from toggle-able features to always-on features of the built TTF?

Thanks for your help and for putting together this great font in general.

mishamyrt commented 1 year ago

Thank you for your request. Such a builder will be added in version 2.100

Finii commented 1 year ago

@walski Well, there is the opentype feature freezer. You can specify which alternative glyphs you want and it recreates a new font for you that can be used with applications that do not support open type features.

For example if you like a slashed zero in Lilex, instead of the default dotted one. The feature is called 'SS03' (see main page of this repo). You can specify multiple features as comma separated list (no blanks).

$ pip3 install --user --upgrade opentype-feature-freezer
$ pyftfeatfreeze -f 'ss03' ~/Downloads/lilex/Lilex-2.000/ttf/Lilex-Regular.ttf Lilex-Regular-SS03.ttf
$ fontforge ~/Downloads/lilex/Lilex-2.000/ttf/Lilex-Regular.ttf Lilex-Regular-SS03.ttf

image

Finii commented 1 year ago

Oh, learned something new today, there is an online freezer available now, no install needed on your side. Just open the web page, upload the font and try it out https://mutsuntsai.github.io/fontfreeze/

Repo: https://github.com/mutsuntsai/fontfreeze

mishamyrt commented 1 year ago

The way FontFreeze deactivates a feature is by removing all lookups inside it, and it activates a feature by moving all lookups in it into calt, which is usually activated by default in most environments

Same here.