11

I'm just wondering, how is it possible to access and use the fleurons coming with fonts like Garamond Premier Pro. For example, the MinionPro package, with pifont, gives a comfortable interface for this purpose:

\usepackage{pifont}
\Pisymbol{MinionPro-Extra}{110}

What i have to do to display, for example, that beautyful leaf, located at U+E1C0 (Orn.01) in the GaramondPremrPro.otf? Is it related also somehow to the installation of the fonts (i used otftotfm)? Or is there a package providing an interface to access these symbols?

Any help would be appreciated!

Michael Ummels
  • 8,604
  • 3
  • 36
  • 27
deeenes
  • 1,269

1 Answers1

13

The following will work only with XeLaTeX or LuaLaTeX, with the fontspec package loaded.

If Garamond Premier is your main font you have to say simply

\symbol{\string"E1C0}

Otherwise, you need to define a command for accessing that font

\newfontface{\fleurons}{Garamond Premier Pro}

and use

{\fleurons\symbol{\string"E1C0}}

There's no interface similar to pifont, at the moment.

Note. \string is used to avoid bad effects with some languages that may activate the double quote.

Traditional pdflatex

For traditional pdflatex one might go via reencoding, but this requires also making a TFM file, possibly with fontinst or, as Michael Ummels points out, with otftotfm, which has also options for extracting ornaments (see also the wrapper script autoinst).

The package adforn makes available some fleurons.

egreg
  • 1,121,712
  • Thanks for the quick answer! These commands are for XeLaTeX only? My LaTeX (default tetex in archlinux) says "! Undefined control sequence. \newfontface", and "Bad character code 57792" (yes, btw this is the number of that character in the GaramondPremrPro.otf). Is it possible to use these symbols in LaTeX, or only XeLaTeX can do this trick? – deeenes Jul 07 '11 at 21:47
  • They are only for XeLaTeX (or LuaLaTeX), unfortunately. – egreg Jul 07 '11 at 21:51
  • Doesn't that require fontspec? – raphink Jul 07 '11 at 21:55
  • Thanks. So, it seems i'm facing again to learn something new stuff :) – deeenes Jul 07 '11 at 22:01
  • @Raphink Yes, I'll edit my answer to make it clear. – egreg Jul 07 '11 at 22:02
  • 1
    IMHO, the easiest way to generate TFM and encoding files for an OpenType font to use with pdftex is via otftotfm or autoinst, which is a wrapper script for otftotfm. – Michael Ummels Jul 08 '11 at 08:58