foliojs / fontkit

An advanced font engine for Node and the browser
1.44k stars 212 forks source link

Text in pdf created by pdfkit not visible since fontkit stepped to 1.6.0 #93

Open toburn opened 7 years ago

toburn commented 7 years ago

I'm using pdfkit to create pdfs on the backend. Suddenly, some hour ago, the text in pdfs was no longer visible in the standard pdf-viewer on my mac and neither in Safari. It's still visible if I use Illustrator or Acrobat from Adobe. I looked what differ and found that the only thing was fontkit stepping up from 1.5.8 to 1.6.0.

toburn commented 7 years ago

Probably it's of importance that I don't use the standard fonts but instead adds a different one (Tekton).

Pomax commented 7 years ago

does this only happen for Tekton, or for other fonts as well?

toburn commented 7 years ago

When using standard fonts like 'Times-Roman' it works fine. It's when I use some .otf font file it doesn't work. I tried a different .otf font just now (AdelleSans_Bold) and that one doesn't work either.

toburn commented 7 years ago

Tried to roll back the fontkit version, and then it worked again.... So it must be something happening in the new version.

devongovett commented 7 years ago

definitely possible I broke something. I'll take a look.