ccwang002 / ccwang002.github.io

My personal blog
https://blog.liang2.tw
MIT License
3 stars 5 forks source link

posts/2022/03/fix-fira-code-font-features/ #4

Open utterances-bot opened 1 year ago

utterances-bot commented 1 year ago

Fix Fira Code font ligatures and features

Fira Code has been my choice of the programming font for a while. It’s also the default monospace font of my blog. I like its ligatures such as >= and connected lines ====== ------. It evens renders the progress bar nicely . It makes my plain text documents look neat. That said, I …

https://blog.liang2.tw/posts/2022/03/fix-fira-code-font-features/

mawkler commented 1 year ago

This is awesome! Especially with the updated even easier method. Do you know how I could add Nerd Fonts glyphs to the font as well?

ccwang002 commented 1 year ago

Looks like Nerd Fonts has already patched Fira Code at https://www.nerdfonts.com/font-downloads, which is probably the easiest way. If you want to freeze specific font features, pyftfeatfreeze can be applied to the patched font as well.

To add the glyphs manually and cleanly from scratch, unfortunately I don't know the glyph files well enough to point you to a right direction :( Tracing Fira Code's and Nerd Font's bash scripts and folder structure might be a good start.

Hope it helps.

mawkler commented 1 year ago

I see, thank you :)