belluzj / fantasque-sans

A font family with a great monospaced variant for programmers.

Home Page:http://openfontlibrary.org/en/font/fantasque-sans-mono

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Adjustible letter spacing?

darthdeus opened this issue · comments

This might be a bit of an odd request, but in short some IDEs (e.g. Jetbrains https://youtrack.jetbrains.com/issue/JBR-5247/Allow-to-change-the-letterspacing-of-a-font) don't allow letter spacing. It seems a possible solution would be to simply modify the font itself to the desired dimensions.

I'm not sure how difficult this would be or how one should approach it? Looking at the glyph files it seems the only option would be to just change the Width, e.g. here https://github.com/belluzj/fantasque-sans/blob/master/Sources/FantasqueSans.sfdir/_A.glyph#L3?

Or is there a better way to approach this? I understand the goal of this font isn't necessarily to be the most configurable thing there is, but I've used it for as long as it existed and deeply enjoy it. I'm not asking the author to do it, I'm happy to dive into this myself if it's possible, but maybe consider this issue more of a question asking for guidance on how to approach this.

I ended up with a hacky solution that works surprisingly well https://github.com/darthdeus/fonts/blob/master/change_spacing.py - I understand this isn't super important for this repo, but leaving this here in case someone else runs into the same problem :)