[texhax] Fumbling with fonts.

Thu Nov 1 08:56:21 CET 2012

On Thu, Nov 01, 2012 at 04:57:36PM +1300, Rolf Turner wrote:

> For reasons best known to myself ( :-) )I want to produce a "solid"
> \heartsuit symbol, rather than just the outline, which is what \heartsuit
> gives you.
>
> After scrounging around I found that one way is to load the arev
> package and use the \varheart symbol which that package makes
> available.
>
> Unfortunately invoking
>
>     \usepackage{arev}
>
> has the effect of changing all of the fonts in my document, which I
> don't want.  How can I "shut this off"?  I.e. I just want to have the
> \varheart symbol available and leave everything else alone.

\documentclass[12pt]{article}

\usepackage{pifont}

% txfonts
\DeclareSymbolFont{TXsymbolsC}{U}{txsyc}{m}{n}
\SetSymbolFont{TXsymbolsC}{bold}{U}{txsyc}{bx}{n}
\DeclareFontSubstitution{U}{txsyc}{m}{n}
\DeclareMathSymbol{\varheartsuit}{\mathord}{TXsymbolsC}{114}

% arev
\DeclareSymbolFont{extraup}{U}{zavm}{m}{n}
\DeclareMathSymbol{\varheart}{\mathalpha}{extraup}{86} % heart

\begin{document}
\Huge
\ding{164} \ding{170} $\varheartsuit$ $\varheart$
\end{document}

Yours sincerely
Heiko Oberdiek