eigilnikolajsen / commit-mono

Commit Mono is an anonymous and neutral programming typeface.
https://commitmono.com/
1.28k stars 21 forks source link

[Request] Hinted TTF versions #29

Closed AkshayChn closed 1 year ago

AkshayChn commented 1 year ago

The otf version of the font font looks hazy on 1366x768 displays. Please consider releasing a hinted ttf version.

eigilnikolajsen commented 1 year ago

I do want to. I just don't have the time or the skill to do so.

rben01 commented 1 year ago

Would something like https://freetype.org/ttfautohint/ get most of the way there?

Zorbn commented 1 year ago

I tried using ttfautohint on the ttf version from "/src/fonts/..." and it made a big difference on my 1920x1080 monitor. IMO it looked best using "-a sss" for strong hinting.

eigilnikolajsen commented 1 year ago

Thank you, I will give this a try. Problem is though that I use OpenType.js to generate custom font files on the website, and it can only output .otf files. That best solution I can see is to include autohinted .ttf files in the release here on GitHub. Those files would be with default settings though. What do you think about this?

AkshayChn commented 1 year ago

The default is pretty good as is. An auto hinted ttf version of it is a great start.

davgar99 commented 1 year ago

I agree with @AkshayChn, the OTF version makes the font look blurry in Visual Studio, but not in Visual Studio Code. I'll post screenshots when I get on my PC @eigilnikolajsen the default settings as a TTF would be fine! 😄

davgar99 commented 1 year ago

Visual Studio Code 15px font Vscode CommitMono

Visual Studio 11px font Visual Studio CommitMono

Zorbn commented 1 year ago

Thank you, I will give this a try. Problem is though that I use OpenType.js to generate custom font files on the website, and it can only output .otf files. That best solution I can see is to include autohinted .ttf files in the release here on GitHub. Those files would be with default settings though. What do you think about this?

That sounds like it would be a big improvement, personally I like the default settings and I assume most people are fine with them. It would be a nice option to have.

eigilnikolajsen commented 1 year ago

Okay, I hope some of you can help me develop this option, so it is as good as possible. So if you mind checking these files, it'd help me a lot. In this folder CommitMonoV136-hinting-test.zip I have put default ttf files with:

What version work best, or ff you have suggestions on how to improve, please tell me!

glebd commented 1 year ago

Tested on Windows 10 and HiDPI display in Notepad++ and Sublime Text 3. The autohinted version is much better than Fontlab-hinted, which produced uneven character shapes and thickness. The autohinted version is pretty decent actually.

eigilnikolajsen commented 1 year ago

Great to hear!

Zorbn commented 1 year ago

I agree that the ttfautohint version is best, tested on Windows 11.

AkshayChn commented 1 year ago

The ttfautohinted version is fantastic. Thanks! System: Ubuntu 22.04, Res: 1366x768.

glebd commented 1 year ago

The only issue with the hinted fonts was that the italic version was showing up as a separate font, and so the regular version didn't have italics. Some font naming issue perhaps? But I reckon that was just because of the test nature of the font...

eigilnikolajsen commented 1 year ago

I have now added ttfautohinted versions of Commit Mono to the latest release (and will be added to all future releases). Thank all for your help, I hope you enjoy it!

elshize commented 1 year ago

Great stuff! I'm testing the hinted version on Linux and it really makes a huge difference to me. Thanks @eigilnikolajsen and everyone involved!