6

I would like to change the font of the letrrine

\renewcommand{\LettrineFontHook}{\fontfamily{the_name}}

\lettrine[lines=3, lhang=0.33, loversize=0.25]{B}{ecause}

using this font: http://www.ctan.org/tex-archive/fonts/script

which is installed in

/usr/local/texlive/2014/texmf-dist/fonts/type1/public/calligra-type1/callig15.pfb
/usr/local/texlive/2014/texmf-dist/fonts/afm/public/calligra-type1/callig15.afm
/usr/local/texlive/2014/texmf-dist/fonts/source/public/calligra/callig15.mf
/usr/local/texlive/2014/texmf-dist/fonts/tfm/public/calligra/callig15.tfm

However, I do not know how to specify correctly its name. I tried

\renewcommand{\LettrineFontHook}{\fontfamily{callig15}}

But it gives

Font Shape 'T1/callig15/m/n' undefined(font)

Thanks for your help!

nbi

  • 1
    You have to do \usepackage{calligra}; then the family name is calligra, not callig15; instead of \fontfamily{calligra} you can simply say \calligra – egreg Aug 6 '14 at 17:34
7

You have to load calligra that defines the font; the family name will be calligra, but you can select it by \calligra. The font is very slanted, so findent should be specified.

\documentclass{article}
\usepackage{lettrine}
\usepackage{calligra}

\usepackage{lipsum} % just for the example

\renewcommand{\LettrineFontHook}{\calligra}

\begin{document}

\lettrine[lines=3, lhang=0.33, loversize=0.25, findent=1.5em]{B}{ecause}
\lipsum[1]

\end{document}

enter image description here

  • thanks a lot. In general, how do you find the name of the font package you want to load? – nbi Aug 7 '14 at 7:52
  • @nbi Experience, mostly. – egreg Aug 7 '14 at 8:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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