默认字体在 T1 fontenc 中栅格化效果非常差

默认字体在 T1 fontenc 中栅格化效果非常差

上次之后微特克斯更新(2017 年 11 月 22 日),我在输出 PDF 时遇到了问题\usepackage[T1]{fontenc},以前从未遇到过。

我创建了一份重要文件:

\documentclass{article}

\usepackage[T1]{fontenc}

\title{Title of this article}
\author{John Smith}

\begin{document}

\maketitle

This is a random text. It is just to show this problem.

\end{document}

这就是我得到的: 我用 fontenc 得到的图像。

您会注意到“标题”一词看起来非常像素化。

我的.log文件显示:

This is pdfTeX, Version 3.14159265-2.6-1.40.18 (MiKTeX 2.9.6500 64-bit) (preloaded format=pdflatex 2017.11.22)  23 NOV 2017 14:25
entering extended mode
**./document.tex
(document.tex
LaTeX2e <2017-04-15>
Babel <3.15> and hyphenation patterns for 75 language(s) loaded.
("C:\Program Files\MiKTeX 2.9\tex\latex\base\article.cls"
Document Class: article 2014/09/29 v1.4h Standard LaTeX document class
("C:\Program Files\MiKTeX 2.9\tex\latex\base\size10.clo"
File: size10.clo 2014/09/29 v1.4h Standard LaTeX file (size option)
)
\c@part=\count79
\c@section=\count80
\c@subsection=\count81
\c@subsubsection=\count82
\c@paragraph=\count83
\c@subparagraph=\count84
\c@figure=\count85
\c@table=\count86
\abovecaptionskip=\skip41
\belowcaptionskip=\skip42
\bibindent=\dimen102
)
("C:\Program Files\MiKTeX 2.9\tex\latex\base\fontenc.sty"
Package: fontenc 2017/04/05 v2.0i Standard LaTeX package

("C:\Program Files\MiKTeX 2.9\tex\latex\base\t1enc.def"
File: t1enc.def 2017/04/05 v2.0i Standard LaTeX file
LaTeX Font Info:    Redeclaring font encoding T1 on input line 48.
))
No file document.aux.
\openout1 = `document.aux'.

LaTeX Font Info:    Checking defaults for OML/cmm/m/it on input line 8.
LaTeX Font Info:    ... okay on input line 8.
LaTeX Font Info:    Checking defaults for T1/cmr/m/n on input line 8.
LaTeX Font Info:    ... okay on input line 8.
LaTeX Font Info:    Checking defaults for OT1/cmr/m/n on input line 8.
LaTeX Font Info:    ... okay on input line 8.
LaTeX Font Info:    Checking defaults for OMS/cmsy/m/n on input line 8.
LaTeX Font Info:    ... okay on input line 8.
LaTeX Font Info:    Checking defaults for OMX/cmex/m/n on input line 8.
LaTeX Font Info:    ... okay on input line 8.
LaTeX Font Info:    Checking defaults for U/cmr/m/n on input line 8.
LaTeX Font Info:    ... okay on input line 8.
LaTeX Font Info:    External font `cmex10' loaded for size
(Font)              <12> on input line 10.
LaTeX Font Info:    External font `cmex10' loaded for size
(Font)              <8> on input line 10.
LaTeX Font Info:    External font `cmex10' loaded for size
(Font)              <6> on input line 10.
[1

{C:/Users/richy/AppData/Local/MiKTeX/2.9/pdftex/config/pdftex.map}]
(document.aux) ) 
Here is how much of TeX's memory you used:
 435 strings out of 493312
 4019 string characters out of 3138898
 53761 words of memory out of 3000000
 4055 multiletter control sequences out of 15000+200000
 8671 words of font info for 26 fonts, out of 3000000 for 9000
 1141 hyphenation exceptions out of 8191
 23i,6n,17p,118b,187s stack positions out of 5000i,500n,10000p,200000b,50000s
 <C:\Users\richy\AppData\Local\MiKTeX\2.9\fonts\pk\ljfour\jknap
pen\ec\dpi600\ecrm1000.pk> <C:\Users\richy\AppData\Local\MiKTeX\2.9\fonts\pk\lj
four\jknappen\ec\dpi600\ecrm1200.pk> <C:\Users\richy\AppData\Local\MiKTeX\2.9\f
onts\pk\ljfour\jknappen\ec\dpi600\ecrm1728.pk>
Output written on document.pdf (1 page, 19525 bytes).
PDF statistics:
 71 PDF objects out of 1000 (max. 8388607)
 0 named destinations out of 1000 (max. 500000)
 1 words of extra memory for PDF output out of 10000 (max. 10000000)

去掉\usepackage[T1]{fontenc},结果就正常了:

正如你所见,这里的结果是正常的。

由于我需要使用该包,我想知道解决这个问题的唯一方法是否是包含\usepackage{lmodern}

编辑:使用XeLaTeX而不是pdfLaTeX给出正常结果。

答案1

我遇到了同样的问题,并通过添加解决了

\usepackage{lmodern}

这是因为\usepackage[T1]{fontenc}Computer Modern 使用位图字体,最终看起来会像素化。Latin Modern 没有这个问题。

相关内容