ryanoasis / nerd-fonts

Iconic font aggregator, collection, & patcher. 3,600+ icons, 50+ patched fonts: Hack, Source Code Pro, more. Glyph collections: Font Awesome, Material Design Icons, Octicons, & more
https://NerdFonts.com
Other
53.79k stars 3.62k forks source link

Italic version of Comic Shanns Mono Nerd Font #1393

Closed toh995 closed 6 months ago

toh995 commented 10 months ago

Requirements

Is your feature request related to a problem? Please describe. My neovim doesn't render italics for Comic Shanns Mono Nerd Font.

Describe the solution you'd like An Italic version of Comic Shanns Mono Nerd Font

Describe alternatives you've considered Create it myself possibly...?

Additional context According to the README for Comic Shanns Mono Nerd Font, a bold version of the font was added.

Is it possible to add an italic version?

I could possibly help out if I get some direction on how to implement this.

Finii commented 9 months ago

The automated changes are always problematic.

You could try and play around with this script https://github.com/ryanoasis/nerd-fonts/blob/master/src/unpatched-fonts/ComicShannsMono/make_bold

and instead of changeWeight() use italizise() on the whole font (and not on all individual glyphs as I did with changeWeight).

https://fontforge.org/docs/scripting/python/fontforge.html#fontforge.font.italicize

In the loop after the wight change I try to get rid of self-intersections with all the simplify calls. Maybe that is not needed or needed in a different configuration after the italicisation.

Also some glyphs like vertical bar should probably not italic.

Finii commented 6 months ago

Well, although this is technically possible the problems with self-intersecting glyphs are a very big hurdle. That would take quite a considerable amount of time that is just not available. Sorry, I will close this now, as it will not be tackled any time in the future (meaning this or next year).