On Mon, Dec 28, 2015 at 08:23:32AM +0100, Matthieu Herrb wrote:
> On Sun, Dec 27, 2015 at 10:05:24PM +0000, Stuart Henderson wrote:
> > On 2015/12/26 19:11, Michael McConville wrote:
> > > Is there a reason why Firefox often has ugly typography in PDFs
> > > generated by LaTeX and the like? Most specifically, the t's are often
> > > very fat.
> > >
> > > Here's an example:
> > >
> > > http://www.sccs.swarthmore.edu/~mmcconv1/dump/firefox-pdf.png
> > >
> > > IIRC, it's this way on some Linux distros too, so maybe it's
> > > unavoidable. Is there any way around it?
> > >
> >
> > I think this may happen if you have ghostscript-fonts installed.
>
> To my eyes this screenshot looks more like a document that used the
> old bitmapped CM fonts rather than some PDF compatible ones. It may be
> possible that it's the firefox PDF viewer that picks them from you
> system, but more probalby it's at the PDF generation stage that the
> damage was done.
>
> Michael, is the original PDF document available somewhere to check
> that.
>
> Hint for (La)TeX document writers : use the lmodern package with
> pdftex/pdflatex.
> --
> Matthieu Herrb
It doesn't seem that \uspackage{lmodern} fixes this issue:
Consider these two examples:
https://people.math.ethz.ch/~thbuehle/fa_i/lorem-lmodern.pdf
https://people.math.ethz.ch/~thbuehle/fa_i/lorem-nolmodern.pdf
both have the same fat t that Mike described. Both were created with
pdflatex, source code below.
As I told Mike in private, setting "pdfjs.disableFontFace" to true
in about:config apparently fixes this issue, but I don't know if there
are other undesirable side-effects of doing this.
$ diff -u lorem*.tex
--- lorem-lmodern.tex Mon Dec 28 14:39:48 2015
+++ lorem-nolmodern.tex Mon Dec 28 14:29:26 2015
@@ -1,6 +1,6 @@
\documentclass[12pt]{article}
-\usepackage{lmodern}
+% \usepackage{lmodern}
\usepackage[T1]{fontenc}
\title{Lorem Ipsum}
$ cat lorem-lmodern.tex
\documentclass[12pt]{article}
\usepackage{lmodern}
\usepackage[T1]{fontenc}
\title{Lorem Ipsum}
\author{D. S. Amet}
\date{\today}
\begin{document}
\maketitle
\section{Lorem Ipsum}
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor
incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis
nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu
fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in
culpa\textasciitilde{}qui officia deserunt mollit anim id est laborum.
\end{document}