tonsky / FiraCode

Free monospaced font with programming ligatures
SIL Open Font License 1.1
76.78k stars 3.09k forks source link

character variants for tilix? #1322

Open shaeinst opened 2 years ago

shaeinst commented 2 years ago

is there any way to change character variants in tilix terminal?

samadadi commented 2 years ago

I hope this helps you. https://github.com/tonsky/FiraCode/discussions/1295 https://twardoch.github.io/fonttools-opentype-feature-freezer I have used these helps to change some character variants in firacode to work in both vscode editor and specially terminal. I recommend to use second url. I only know these solutions.

alexeyten commented 2 years ago

First solution is for good apps that use fonts-config. But some apps (notably VSCode, Firefox and Chrome) don't use fonts-config and in this case the only solution is to freeze features.

I guess, tilix is based on libvte so both solutions would work.

TuggyNE commented 2 years ago

But some apps (notably VSCode[…]) don't use fonts-config

This is probably technically true, but pretty oddly phrased, since VS Code can simply configure all character variants/stylistic sets directly within its own settings, using editor.fontLigatures. For example, I have mine set to "'ss01', 'ss02', 'ss03', 'ss05', 'ss06', 'cv30', 'ss09'". So there would be no need to worry about freezing font features for VS Code.

alexeyten commented 2 years ago

Yea, I meant that you can't control these apps with fonts-config. So either they have their own way to choose font features (VSCode) or you have to freeze features.

For example, I use Inter as system default serif font. And I've configured it to have slashed zero. It works almost everywhere (calendar, file manager, menu), but Firefox uses Inter font, but zero is not slashed. For now I just ignore it, but if I really want slashed zero everywhere, I'd have to freeze it into new font.