Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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:

\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[english]{babel}
\usepackage{amsmath}
%\usepackage{icomma}
%\usepackage{units}
\usepackage{graphicx}
\usepackage{epstopdf}
\usepackage{color}
\usepackage[hyphens]{url}
\usepackage[breaklinks,pdfpagelabels=false]{hyperref}
%\usepackage{lettrine}
\usepackage[sort]{natbib}
\usepackage{caption}
\usepackage[final]{pdfpages}

%\usepackage{fancyhdr}
%\usepackage{fncychap}


\newcommand{\degC}{\ensuremath{\,\unit{^\circ C}}}
\newcommand{\mail}[1]{\href{mailto:#1}{\nolinkurl{#1}}}

Thanks!

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
1  
When you add \usepackage[T1]{fontenc} you should also load a vector font, for example \usepackage{lmodern} –  matth May 9 '12 at 16:37
    
3  
possible duplicate: tex.stackexchange.com/questions/1291/… –  matth May 9 '12 at 16:41

2 Answers 2

up vote 9 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}:

</usr/local/texlive/2011/texmf-dist/fonts/type1/public/amsfonts/cm/cmr10.pfb>

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:

</usr/local/texlive/2011/texmf-dist/fonts/type1/public/cm-super/sfrm1000.pfb>

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

\usepackage{lmodern}

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
1  
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:

\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage{lmodern}
\usepackage[T1]{fontenc}
\usepackage[babel=true]{microtype}
share|improve this answer

Your Answer

 
discard

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.