TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When rendered the text in my pdf is not anti alised. Anyone knows how to do this?

The following example shows my text output compared with output from google docs pdf

enter image description here

Is it even possible with pdflatex?

Header file:



\newcommand{\degC}{\ensuremath{\,\unit{^\circ C}}}


share|improve this question

migrated from stackoverflow.com May 9 '12 at 16:23

This question came from our site for professional and enthusiast programmers.

it would help if you add the header of your tex file to the post, and tell us how exactly you compile the tex file. I use pdflatex using the pdftex script of TeXShop, and I get nice looking text. – thundersteele May 9 '12 at 15:10
Is the text rasterized or using a bitmap font? I don't know anything about pdflatex, but those are the only reasons I can think of that would cause aliased text in a PDF. – mcrumley May 9 '12 at 15:55
When you add \usepackage[T1]{fontenc} you should also load a vector font, for example \usepackage{lmodern} – matth May 9 '12 at 16:37
possible duplicate: tex.stackexchange.com/questions/1291/… – matth May 9 '12 at 16:41
up vote 12 down vote accepted

There are no "official" outline fonts for TeXs native Computer Modern Roman fonts in T1 (also called EC) encoding.

For the old OT1 encoding there are the Blue Sky fonts, a free set of Type1 fonts which were hand-outlined. You'll see these in the log as follows if you leave out \usepackage[T1]{fontenc}:


For EC encoding there are for instance the CM Super fonts, which are also outline fonts, but they are autotraced and the package is huge, so they seem to be missing on some systems. They seem to be included in a full TeXLive install nowadays, so with \usepackage[T1]{fontenc} I get:


If you don't have the cm-super package installed, you'll get bitmap fonts generated from the original Metafont sources of the EC fonts, which gives the pixelated effect you are seeing.

Another alternative for T1 encoding is to load the Latin Modern fonts with


as mentioned in the comment by matth. They are a hand-outlined replacement for Computer Modern, but they look different from the EC fonts in some places.

share|improve this answer
I do not know the recent behaviour, but in the past in MiKTeX even on a full install CM Super fonts were not installed automatically. One had to do it by hand with the package installer. – Speravir May 9 '12 at 21:39
@Stephan: How do one install a package? – StrawberryFieldsForever Jun 14 '12 at 15:20
@StrawberryFieldsForever This depends on your distribution. With TeXLive the script tlmgr does a great job! – Stephan Lehmke Jun 14 '12 at 15:23

Adding \usepackage[T1]{fontenc} to your preamble is a good thing, but sadly it will load a bitmap font by default. So in order to hace a nice looking font, you need to load one. Adding microtype makes the type face even nicer. Here is an example of what I put in my preamble:

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.