Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Any thought on larger height #66

Open
WindSoilder opened this issue Jan 7, 2021 · 5 comments
Open

Any thought on larger height #66

WindSoilder opened this issue Jan 7, 2021 · 5 comments

Comments

@WindSoilder
Copy link

First, thanks for your awesome font very much!!!

I saw this font have different width and weight, are there any ideas for different height? Personally, I find Inconsolata-g's is bigger than Inconsolata, I think it's better for High Resolution Screen

@nirajd
Copy link

nirajd commented Feb 18, 2021

I wondered about this as well. I use Inconsolata as my system font and with default size settings (12pts usually), Inconsolata is considerably smaller than other monospace fonts.

Would be great to be able to use it without trying to tweak font size in various applications.

@svipas
Copy link

svipas commented Oct 16, 2022

@m4rc1e @raphlinus Please, could you consider this? Or at least say how we could do that by ourself from some build script? I need at least 14 font size for Regular or 15 font size for SemiCondensed for it to be usable and the problem is if I increase size in Visual Studio Code other widgets with different font looks enormous...

@CrendKing
Copy link

CrendKing commented Dec 12, 2022

I can think of two ways to achieve this. First is to use FontForge's Transformation function to actually scale all the glyphs by a percentage. There are many tutorials online, such as this. However, because the way how FontForge exports the font file will certainly be different to how this repo does, it is a lossy process and I do not recommend.

The other simple way is to reduce the UPM (em square) of the font from the original 1000 to something like 900, which is increase the size by around 11%. FontForge can do this, but again it's a lossy process. A cleaner approach is to use fonttools' ttx:

  1. Install fonttools in a virtualenv.
  2. Export the original head table from the font: ttx -t head -o head.ttx 'Inconsolata[wdth,wght].ttf'
  3. Change the line <unitsPerEm value="1000"/> in head.ttx to something like <unitsPerEm value="900"/>.
  4. Merge the new head table back to the font with ttx --no-recalc-timestamp -o 'Inconsolata[wdth,wght]-larger.ttf' -m 'Inconsolata[wdth,wght].ttf' head.ttx

Note that because Inconsolata comes with hinting program, changing the UPM may mess up the hinting effect. To fix that, re-apply hinting with FreeType's ttfautohint. Simply use the GUI version and leave all parameter default.

@svipas
Copy link

svipas commented Dec 14, 2022

@CrendKing Thanks a lot, but still I hope there would be an "official" way to do this or separate builds with larger size. I tried your suggestion with fonttools, but seems like hinting is "off" even though I used ttfauthohint, font is thinner than original one.

@svipas
Copy link

svipas commented Apr 18, 2023

@m4rc1e Any help here? Maybe we could do it ourself somehow? Because I need to use 14.5 font size which increases sizes for a lot of things in IDE... It would be really good if I could use 12.5 like I do for e.g. with Iosevka.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants