# autoinst — cannot use truetype font

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.

==> Fatal error occurred, no output PDF file produced!
``````

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

-
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
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
@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

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