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.

I'm trying to use the DroidSans font in a deck of slides I'm making with Beamer. I got the truetype file for this font, that is DroidSans-webfont.ttf, hence I executed, in my working directory:

$ autoinst DroidSans-webfont.ttf

This generated three files, specifically:

DroidSans.map
DroidSans.sty
LY1DroidSans-TLF.fd

Then, I included the following command in my .tex source file

\usepackage{DroidSans}

and compiled the source with pdflatex. Compilation fails, reporting this error:

kpathsea: Running mktexpk --mfmode / --bdpi 600 --mag 0+300/600 --dpi 300 DroidSans-tlf-ly1--base
mktexpk: don't know how to create bitmap font for DroidSans-tlf-ly1--base.
kpathsea: Appending font creation commands to missfont.log.

!pdfTeX error: pdflatex (file DroidSans-tlf-ly1--base): Font DroidSans-tlf-ly1--base at 300 not found
==> Fatal error occurred, no output PDF file produced!

What's going on here? Am I missing something?

share|improve this question
2  
Welcome to TeX.sx! Truetype is not easily accommodated in LaTeX. You could look at tex.stackexchange.com/q/226/19384 for some different solutions. –  Peter Jansson Jan 21 '13 at 13:08
1  
You could use the droidsans package: Droid Sans in The LaTeX Font Cataloque. –  Silex Jan 21 '13 at 13:10
    
I tried using the droidsans package, still I got a similar error: kpathsea: Running mktexpk --mfmode / --bdpi 600 -mag 0+360/600 --dpi 360 DroidSans-03 mktexpk: don't know how to create bitmap font for DroidSans-03. kpathsea: Appending font creation commands to missfont.log. (see the transcript file for additional information) !pdfTeX error: pdflatex (file DroidSans-03): Font DroidSans-03 at 360 not found –  Loris Fichera Jan 21 '13 at 14:02
    
@LorisFichera: have you (re)moved your generated files? –  Silex Jan 21 '13 at 14:12
2  
@LorisFichera: Can you upgrade to TeX Live 2012? See: How do I install the latest TeX Live 2012? It probably contains a properly installed version of the droidsans package. –  Silex Jan 21 '13 at 15:21
show 5 more comments

1 Answer 1

up vote 7 down vote accepted

You need to activate the map-file, either globally with updmap-sys (or updmap) or by using \pdfmapfile{=DroidSans.map} in your document.

share|improve this answer
add comment

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.