jpt/barlow

Rendering issue on Ubuntu & Windows with Self-Hosted Fonts

Closed this issue · 5 comments

I tried self-hosting font files and ran into rendering issues on Windows and Ubuntu that I don't see when using Google Fonts. It looks fine on Mac in both cases.

On Ubuntu and Windows the baseline of the characters is inconsistent, leading to lines with some characters higher than others. Note that this is using the files from a git pull of tag 1.422.

An image showing the problem and the css used to load the font are attached.

image

barlow.css.txt

jpt commented

Hi @thatcort -- thanks for reporting the issue. I can only guess that there's an issue with the hinting in this release; I'll take a look at it and get back to you.

jpt commented

Hi again @thatcort -- can you test these new WOFF2 files and let me know how they work? Thanks!
woff2-new.zip

This looks much better - thanks!

There is still a rendering issue on Windows 10, at least for Barlow Bold:
barlow-bold-problem
I'm using woff2, it looks the same in Chrome and Firefox.
Thank you!

Self hosting on webapp viewed in Windows 11 Chrome. If I wrap it in a <h123456/> element the zero is fine, but in <p/> it shows the uneven height for the zero.
image