PDF web rendering error

I’m having an issue with a 4-axis variable font I designed in Glyphs 3. It’s not displaying correctly in certain situations on web. When using the font in an InDesign document, and after exporting to a PDF, the type looks fine. When viewed through the pdf viewer in the project management site ClickUp, the issue occurs. As shown in the attachments, the right halves of each glyph are cut off.

Is this a known issue with some online PDF viewers? Is there a way to edit the font on my end to avoid the rendering error?

Thanks!


Do you happen to use FireFox?

I don’t, but I can try viewing the pdf there.

Interesting, the PDF shows correctly in ClickUp’s viewer in Firefox. Any idea where the issue might come from, between Mac > Adobe > Chrome > ClickUp?

Can you be more specific what happens where?

The font displays correctly in InDesign, in an exported PDF viewed from Mac’s Finder, in a PDF viewed by itself in a Chrome tab, and in a PDF viewed in ClickUp’s PDF viewer in FireFox. The only instance that displays incorrectly is in the ClickUp PDF viewer in Chrome on Mac.

Is this happening with all of your fonts? And does it makes a difference where you make the PDF?

I’ve never run into this issue before with other variable fonts, but I’ll test some out across various adobe apps.

I mean if you make the PDF from Pages or so.

I don’t have Pages, but I tried exporting to a pdf from Word, which strangely sets the variable font to Calibri.

Or TextEdit, Cmd-P and Save as PDF.

The font displays ok in TextEdit, but after PDF export, a thin strip at the top of the first line of text is cut off.

Variable_Test_3.pdf (9.4 KB)

Can you check with fontbakery.com? This sounds like some vertical metrics issue.

Fontbakery returned some master/instance value/table inconsistencies, which I haven’t delved too deeply into, so once I get around to those I’ll see if that fixes the issue. Thanks for the suggestion!

What profile did you use?

Universal and Opentype so far.

Try TypeNetwork.

It returned the following checks/warnings that might have something to do with the cropping:

  • The font will display significantly vertically uncentered on web environments. Top space above cap height is 300 and under baseline is 200
  • OS/2 sTypoAscender (700) and hhea ascent (1000) must be equal.
  • hhea lineGap is not equal to 0.

Yes, must be equal. They do the same thing in different environments.

Doesn’t matter. Use them to control the gap between lives. Just make sure, again, that hhea and typo values are in sync.

Will do, thanks!