Dear all,

the firefox pdf viewer has problems with at least two sans serif fonts.

Using this mwe I get a bad display in ff with Gyre font and Alegreya Font.

%\definefontfamily[mainfont][sans][AlegreyaSans]
\definefontfamily[mainfont][sans][texgyreheros]
\setupbodyfont  [mainfont,12pt]
\startdocument
  \starttext
  \input lorem
\stoptext
\stopdocument

When I create a pdf from LibreOffice with these fonts I have a good display.

pdffonts shows different font inclusion:


pdffonts libreoffice.pdf
name type encoding emb sub uni object ID ------------------------------------ ----------------- ---------------- --- --- --- --------- BAAAAA+TeXGyreHeros-Regular Type 1 Builtin yes yes yes 9 0

pdffonts mwe.pdf
name type encoding emb sub uni object ID ------------------------------------ ----------------- ---------------- --- --- --- --------- SOVKKO+TeXGyreHeros-Regular CID Type 0C Identity-H yes yes yes 1 0


Where Libreoffice has type "Type 1", lmtx has "CID Type 0C".

Where Libreoffice has encoding "Builtin", lmtx has "Identity-H".

I have no idea if the difference is the cause of the bad display.

Luckily chrome based browsers shows the fonts without any flaws.

But there are many Firefox users out there who never use a real pdf-viewer. I would like to show them a good result.

Any ideas how I can achieve this?

juh

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : https://contextgarden.net
___________________________________________________________________________________

Reply via email to