kiliman / operator-mono-lig

Add ligatures to Operator Mono similar to Fira Code
MIT License
3.22k stars 203 forks source link

Is it possible to replace the % symbol ? It is too tiny for me #85

Closed astrolemonade closed 5 years ago

kiliman commented 5 years ago

I don't currently have a way to replace existing glyphs, but I will take a look at adding that feature.

I agree, the % symbol is odd with its closed circles.

astrolemonade commented 5 years ago

Thank you very much @kiliman ! Please reply here when you will replace, I can't see another way of being updated with the news from you.

astrolemonade commented 5 years ago

Have you done any changes to the % gliph ? Let me know please !

kiliman commented 5 years ago

How does this look?

image

astrolemonade commented 5 years ago

The first one looks awesome !! Very balanced with the digits, the second one is difficult to distinguish right away. The first is the good choice.

kiliman commented 5 years ago

Ha. The 2nd one is the current Operator Mono one. I was just showing it in comparison.

Not a big fan of the closed circles, so I see why you would like a replacement.

astrolemonade commented 5 years ago

Thank you, @kiliman :))

kiliman commented 5 years ago

Here's what the alternate % sign looks like in VS Code.

image

I have added support in latest build on branch features/contextsubst. This allows replacing existing glyphs with alternates.

Since the alternate percent glyph is optional, you will need to add a custom profiles.ini file in the ./original folder. This is how you can define custom fonts.

[default]
percent=percent.alt

The format of the profiles.ini file is:

# optional comments
[profile]
# map glyph to an alternate
glyph=altglyph
# don't add this glyph to the font
!glyph

You can have more than one profile. The profile name is appended to the name of the font (except for default). This way you can create different fonts with different ligatures, etc. for specific languages. So if you have a [Go] profile, the font would be Operator Mono SSm Lig Go.

You can also disable certain ligatures if you want. For example, if you don't like the == glyph, just add: !equal_equal.liga

If you want to try the alternate ligatures, you can do: less_equal.liga=less_equal.2.liga

Look in the glyphs folder to see what alternates are available.

Let me know if you have any questions.

kiliman commented 5 years ago

Closed by 2de4cec227ea2971ebefd8665ad2d9792eb7d5d0 and 094662aef66d0a2072127b9865c30f557b928435

astrolemonade commented 5 years ago

Thank you @kiliman

kiliman commented 5 years ago

Please use the develop branch. I've merged the feature branch and deleted it.

astrolemonade commented 5 years ago

I will

mie., 24 iul. 2019, 17:07 Kiliman notifications@github.com a scris:

Please use the develop branch. I've merged the feature branch and deleted it.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/kiliman/operator-mono-lig/issues/85?email_source=notifications&email_token=AIPZH4JSD62IKB2KJJVVZWDQBBOYHA5CNFSM4HXP3WKKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2WOIBI#issuecomment-514647045, or mute the thread https://github.com/notifications/unsubscribe-auth/AIPZH4MOV6AHPWXLDAZJYXTQBBOYHANCNFSM4HXP3WKA .