[texhax] Symbol to number correspondence for fonts.

Axel E. Retif axel.retif at mac.com
Tue Apr 16 05:26:44 CEST 2013


On 04/15/2013 09:17 PM, Rolf Turner wrote:

>
> Some time ago I asked of this list how to produce a solid
> heart suit symbol without changing the font of the whole
> document.
>
> I got several useful replies, including one from Paul Isambert
> who suggested:
>> A solution is to use directly the font loaded by the arev package:
>>
>>      \font\heartfont=favmr7y at 10pt % set your own size here
>>      \newbox\heartbox \setbox\heartbox=\hbox{\heartfont\char"56}
>>      \def\varheart{\leavevmode\copy\heartbox}
>>
>> (The box trick allows you not to bother about math mode.)
> I now would like to get a solid *diamond* suit symbol as well.
> Presumably the same syntax would work except that I would
> have to change "56" to some other number?  What number?


Try in your Terminal

pdftex testfont

Name of the font to test = favmr7y
          Now type a test command (\help for help):)
*\table

*\end

You will get a testfont PDF in your working directory. There you'll find 
the information you need.


Best

Axel


More information about the texhax mailing list