# How do I use Delicious font in my beamer presentation

I want to use Delicious font in my beamer presentation. How should I install this font and/or use it in my presentation. I am running ubuntu 10.04 and have installed the font. I am wondering how do I use this font in my beamer presentation.

-

The default TeX engine cannot use system fonts directly; the font needs to be converted in a format that TeX can understand.

However, the newly developed engines XeTeX and LuaTeX can use OpenType fonts directly. You can adopt the method from a previous answer (with \setsansfont instead of \setmonofont).

Note that the version of fontspec included in Ubuntu 10.04 (the package is texlive-xetex) only works with xelatex. Also, it (and the Ubuntu XeTeX version) is rather old and might contain bugs. If something doesn't work, you should install TeX Live 2010 directly.

-
To be fair, the TeXlive which comes as an Ubuntu package does include xelatex and the fontspec package in the texlive-xetex package, which are all that is needed here. (Though as you say, they are very dated.) – frabjous Jan 4 '11 at 19:54
@frabjous: I was vaguely remembering that there was some critical bug in it, but it seems to work (at least in Ubuntu 10.10). I'll change the answer accordingly. – Caramdir Jan 4 '11 at 20:00
and frabjous. Thank you. I had xetex and fontspec package installed, but I will try it with TexLive2010 as suggested. – suncoolsu Jan 4 '11 at 20:02
Actually Ubuntu 10.04 contains the Debian packages of TeXLive2009, which is more or less the original release. TL'09 was the first to have compatible versions of XeLaTeX and beamer. – Carsten Thiel Jan 4 '11 at 20:15

Put the fonts into the system font dir, which is on my Linux system /usr/share/fonts/opentype and then run with xelatex:

\documentclass{beamer}
\usepackage{fontspec}
\setmainfont[Mapping=tex-text]{Delicious}
\let\sfdefault\rmdefault
\begin{document}

\begin{frame}{Delicious}
Some text with Delicious
\end{frame}

\end{document}


-
Of course you need to run sudo fc-cache -fv after putting the file in /usr/share/fonts. But suncoolsu says that the font is already installed, so that shouldn't be an issue. – frabjous Jan 4 '11 at 20:17
@frabjous: no, I didn't run that command! – Herbert Jan 4 '11 at 20:19
Or put it in ~/.fonts to install locally for the user. – Caramdir Jan 4 '11 at 20:29
@everyone. I did what @caramdir suggests and did sudo fc-cache -fv as @frabjous suggests to install the font on my system. But @Herbert, I dont have the opentype directory. The directories I see are: truetype type1 and X11. However, I must remark, TexLive is being installed currently. – suncoolsu Jan 4 '11 at 20:35
@suncoolsu: then create the opentypedirectory. It is not really needed but makes sense to have the fonts saved in proper directories – Herbert Jan 4 '11 at 20:42