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.

Using LuaLatex, I need two very specific symbols from two very specific fonts, namely from the ZapfDingbats and the WingDings font.

I understand how I could use the fontspec package to set those fonts as standard fonts for my document. But for obvious reasons, I don't want that.

How do I pick a specific symbol from a specific font (with LuaLatex)?

While still using PDFLatex, I used the pifont package to get the Dingbats character:

\documentclass{article}
\usepackage{pifont}
\begin{document}
\ding{113}
\end{document}

Doesn't work for WingDings, though, which is why I switched to LuaLatex. However, not only did I understand that using such "font packages" is deprecated with LuaLatex, but I also don't have a clue how I'd go about picking a specific symbol from the WingDings font...

share|improve this question
    
Use the \fontspec command to switch temporarly to your font. –  Ulrike Fischer Dec 15 '11 at 16:22
    
As Ulrike said, you can use the \fontspec command. If you are using always the same symbol, you can build a special command to insert this symbol, based on the same \fontspec command. –  Martigan Dec 15 '11 at 16:38

1 Answer 1

up vote 8 down vote accepted
\documentclass{article}
\usepackage{fontspec}
\newfontfamily\wingdingsfont{Wingdings}
\newcommand\wingdings[1]{{\wingdingsfont\symbol{#1}}}
\usepackage{fonttable}

\begin{document}
\wingdings{40} 123-4567-8900

\fonttable{Wingdings}
\end{document}
share|improve this answer
    
Very nice, this solved 50% of my problem. Now all I have to do is to find out by which name to load the Dingbats font under LuaLaTex (which obviously exists in my installation as the pifont package used it under PdfLatex). "Zapf Dingbats" didn't work, "pzd" and numerous variations didn't, either. This part of LaTeX (fonts) gives me headaches... –  DevSolar Dec 15 '11 at 17:33
    
@DevSolar: You can load and use it as you would load and use it with pdflatex. –  Ulrike Fischer Dec 15 '11 at 18:04
1  
@DevSolar: For LuaTeX, see How do I get a list of all available fonts for luaotfload?. For traditional TeX fonts, you'd better use a font package. It is a little more difficult to use traditional TeX symbol fonts directly, see also Is there a list available for all TeX fonts? and of course The Comprehensive LaTeX Symbol List –  Leo Liu Dec 15 '11 at 18:08
    
@UlrikeFischer: Huh? I thought these font packages were deprecated under LuaLaTeX? –  DevSolar Dec 15 '11 at 18:31
1  

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.