Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Fonts render inconsistently on PDFs generated from LaTeX in Overleaf

New Here ,
Feb 04, 2023 Feb 04, 2023

Adobe Acrobat is rendering certain fonts inconsistently on PDFs generated from LaTeX on Overleaf.com. Acrobat omits pixels from displays of glyphs or characters in larger fonts when the document is displayed at 100%-125% Zoom, but at higher Zooms, the characters display correctly. Here is an example:

Displayed at 100%:

Screen_Shot_2023-01-26_at_12.18.13_PM.png

Note omission of pixels at junctures of some lines in some glyphs in both title and subtitle.

Displayed at 125%:

Screen_Shot_2023-01-26_at_12.17.27_PM.png

Here, note that the larger heading now displays without omitted pixels, but the subtitle and author names still have them. But if we Zoom in to 150% or higher, all the characters display correctly. We've reproduced this problem on multiple platforms using Acrobat readers.

 

The problem DOES NOT appear when we view the PDF using third-party viewers, such as Apple's Preview or Skim, or the built-in viewers in browsers such as Safari or Firefox.

 

I've attached the actual PDF with the example above here.

 

Any advice would be most welcomed! Thanks in advance!

-Brian

TOPICS
Create PDFs , Edit and convert PDFs , General troubleshooting
2.8K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
People's Champ ,
Feb 05, 2023 Feb 05, 2023

It's the font used in the PDF, Gentium Plus PS.

 

When I examined your PDF and enlarged it to view individual letters in Gentium, I noticed a pattern of where the white "dots" appeared — always where 2 postscript vectors intersect, such as where the lowercase e's horizontal cross arm intersects the curved vector, the lowercase d's curved bowl intersects the straight vertical vector, etc.  Here are 400% enlarged screen captures:

Gentium vectorsGentium vectorsGentium vectorsGentium vectors

 

Where the different vectors intersect, they actually overlap and the overlapped portions reverse color. Therefore you see white, not black, for the overlapped portions. Very common for us who design vector graphics in Adobe Illustrator.

 

This version of the Gentium Plus font isn't correctly programmed or designed. I suspect that it doesn't completely conform to whatever standard/specification is required for scalable vector fonts. Gentium was designed and developed by SIL International. https://software.sil.org/gentium/  originally in 2002 but updated several times since then.

 

To confirm this theory, I edited your PDF in order to test different fonts in the same document. I chose Minion Pro (an Adobe-developed font) because Adobe invented scalable vector fonts in the mid-1980s and if anyone could program a font correctly, it would be Adobe.

 

The tests below show one word, "audience," in two fonts: Gentium and Minion Pro. There's no problem with the Minion Pro version.

 

Gentium font with white dots.Gentium font with white dots.

 

Minion Pro renders correctly.Minion Pro renders correctly.

 

Suggestions:

  • Choose another font. If you want opensource fonts, maybe try something from Google Fonts https://fonts.google.com/. I've had good success with Source Serif/Sans and Noto Serif/Sans.
  • Download and install a newer version of Gentium from SIL. Possibly you're using an older version of the font and the error was corrected in recent versions. https://software.sil.org/gentium/download/   Version 6.2 was released a couple of days ago on February 1, 2023. That's the one I'd download and try.

 

Hope this helps.

 

 

|    Bevi Chagnon   |  Designer, Trainer, & Technologist for Accessible Documents |
|    PubCom |    Classes & Books for Accessible InDesign, PDFs & MS Office |
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
People's Champ ,
Feb 05, 2023 Feb 05, 2023

Could also be the PDF Producer used by LaTeX to convert your source file to PDF.

I don't do LaTeX anymore so I have no idea where it stands in development, but there might be a newer PDF Producer available.

 

LaTeX PDF Producer version in your PDF. File/Document Properties.LaTeX PDF Producer version in your PDF. File/Document Properties.

 

|    Bevi Chagnon   |  Designer, Trainer, & Technologist for Accessible Documents |
|    PubCom |    Classes & Books for Accessible InDesign, PDFs & MS Office |
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Feb 06, 2023 Feb 06, 2023

@Bevi Chagnon - PubCom.com As for the version of pdfTex, that's interesting, because the version on the PDF file, 1.40.24 is one beyond what I understand to be the current stable release, which some poking around suggests is 1.40.23. Perhaps Overleaf is using a newer, unstable version. I'm checking into that as well.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Feb 06, 2023 Feb 06, 2023

Thanks for running this to ground. I'll look at alternative font options as a solution. I wonder why this problem is only happening in Adobe viewers, though, and not in other viewers I looked at.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
People's Champ ,
Feb 06, 2023 Feb 06, 2023
LATEST

Given that Adobe created the original vector technologies, including scalable fonts, as well as the PDF file format (which is now in the public domain), our shop has found that Adobe's Acrobat products usually do the best job of following the PDF specifications / standards, while other brands usually don't follow the PDF standards accurately enough. So maybe this is a case of Adobe being more finicky about correct font embedding? Just a thought!

 

I also wondered why, when the PDF is viewed at a larger percentage, the vector problem disappears. At first I thought this might have something to do with font hinting that is built into Adobe's vector fonts (and some other brands), but I don't think so. The problem we're seeing is incorrect rendering of individual vector paths when combined in some glyphs.

 

Sure wish Adobe's font engineers hadn't retired. They'd be here diagnosing the problem in a heartbeat!

 

|    Bevi Chagnon   |  Designer, Trainer, & Technologist for Accessible Documents |
|    PubCom |    Classes & Books for Accessible InDesign, PDFs & MS Office |
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines