JetBrains / JetBrainsMono

JetBrains Mono – the free and open-source typeface for developers
https://jetbrains.com/mono
SIL Open Font License 1.1
10.57k stars 299 forks source link

How to enable OpenType by default #572

Closed liangjingkanji closed 1 year ago

liangjingkanji commented 1 year ago

Excuse me. I think a lot of people have this need liangjingkanji/JetBrainsMono-patch/issues/2

Can use Glyphs3 achieve this requirement?

Because I want to keep the complete opentype, So don't want to modify the characters

philippnurullin commented 1 year ago

Hi @liangjingkanji Not sure I understood your idea.

liangjingkanji commented 1 year ago

I modified the default features, But I wonder if there is an option to quickly toggle the default features

Here's what I modified, on by default features: 'zero', 'cv02', 'cv03', 'cv04', 'cv05', 'cv17'

https://github.com/liangjingkanji/JetBrainsMono-patch

philippnurullin commented 1 year ago

You mean how to turn off/on OpenType features in text editors & IDE? It depends on the editor. Usually it's well hidden, so you might want to google where to find it your exact case/editor.

liangjingkanji commented 1 year ago

I want to directly set the font default features, Because the Jetbrains IDE does not support set font-features

alexeyten commented 1 year ago

So you just want to change the default, but still have access to other variants. Am I correct?

liangjingkanji commented 1 year ago

So you just want to change the default, but still have access to other variants. Am I correct?

Yes

philippnurullin commented 1 year ago

In that case, switch glyphs from the desired cv with default glyph. You can make it by renaming the glyphs in source files. For example, rename all g.cv03 to g. And current g to g.cv03.

liangjingkanji commented 1 year ago

That's what I'm doing right now, It feels troublesome, If that's the easiest way then I get it

Thank you very much for your work!