dvips: Fonts in figures
5.1.6 Fonts in figures
----------------------
You can use any font available to TeX and Dvips within a graphics file
by putting a '%*Font:' line in the leading commentary of the file.
Schematically, this looks like:
%*Font: TFMNAME SCALEDBP DESIGNBP HEX-START:HEX-BITSTRING
Here is the meaning of each of these elements:
TFMNAME
The TeX TFM filename, e.g., 'cmr10'. You can give the same TFMNAME
on more than one '%*Font' line; this is useful when the number of
characters from the font used needs a longer HEX-BITSTRING (see
item below) than conveniently fits on one line.
SCALEDBP
The size at which you are using the font, in PostScript points (TeX
big points). 72bp = 72.27pt = 1in.
DESIGNBP
The designsize of the font, again in PostScript points. This
should match the value in the TFM file TFMNAME. Thus, for 'cmr10',
it should be '9.96265'.
HEX-START
The character code of the first character used from the font,
specified as two ASCII hexadecimal characters, e.g., '4b' or '4B'
for 'K'.
HEX-BITSTRING
An arbitrary number of ASCII hexadecimal digits specifying which
characters following (and including) HEX-START are used. This is
treated as a bitmap. For example, if your figure used the single
letter 'K', you would use '4b:8' for HEX-START and HEX-BITSTRING.
If it used 'KLMNP', you would use '4b:f4'.
MetaPost's output figures contain lines like this for bitmap fonts
used in a MetaPost label (⇒(web2c)MetaPost).