RedHatOfficial / Overpass

Overpass open source web font family — Sponsored by Red Hat
http://overpassfont.org
SIL Open Font License 1.1
2k stars 89 forks source link

Overpass Mono capital S is 1 pixel taller than a capital P on some sizes #55

Open ghost opened 7 years ago

ghost commented 7 years ago

Hello,

While trying Overpass Mono regular in my terminal I noticed that a capital S is 1 pixel taller than a capital P on some sizes.

On size 13, everything looks fine. When switching it to size 11 though, it looks off. For the following examples I turned off AA in my Gnome Tweak Tool, took a screenshot, and zoomed in in GIMP (2300% zoom):

Size 11 screenshot from 2017-06-11 00-05-54 Size 13 screenshot from 2017-06-11 00-07-15

So I decided to open the font in FontForge and it seems the capital S is ~ 1/10th taller than the capital P: screenshot from 2017-06-10 23-52-18

If this could be fixed, that would be great! :)

davelab6 commented 7 years ago

This probably won't be fixed because the round shapes being measurably taller than the flat shapes is intended, so that they are perceived as the same height in typical font rendering environments.

This fully aliased style of rendering was last typical about 20+ years ago, and the freetype library is capable to antialiased rendering. I suggest exploring the GIMP options and using an option that antialiases text.

(It's possible that this is also a hinting bug and if ttfautohint has been used a ttfautohint control file can be written to correct the error made by the autohinter.)

ghost commented 7 years ago

Hi Dave,

Thanks for your reply!

The reason I turned off anti aliasing was because I figured I'd see what the font looks like without any extra effects. The same does happen when anti aliasing is enabled though:

Size 11 AA enabled screenshot from 2017-06-11 12-11-32 Size 13 AA enabled screenshot from 2017-06-11 12-12-22

After you mentioned that it may also be a hinting bug, I tried disabling it, and that did seem to do the trick! Right now it looks like this:

Size 11 AA enabled, hinting disabled screenshot from 2017-06-11 12-14-16 Size 13 AA enabled, hinting disabled screenshot from 2017-06-11 12-15-05

So I guess I'll just disable hinting and see how that works out for me.

Thanks again!

madig commented 4 years ago

Autohint the OTFs with https://github.com/adobe-type-tools/psautohint/ and see if that fixes it.