[pdftex] how to include literal commands into vpl files

Hans Hagen pragma at wxs.nl
Thu Aug 30 15:27:11 CEST 2001


At 01:30 PM 8/30/2001 +0200, Ulrich Dirr wrote:
>Hi.
>
>I want to include some literal pdf code into a vpl file so
>that when using the virtual font some characters
>automatically get colored.
>
>With "normal" TeX I've used successfully the construct
>(CHARACTER O 53
>    (CHARWD R 1.0)
>    (CHARHT R 0.75)
>    (CHARDP R 0.25)
>    (MAP
>       (SPECIAL color push gray 0.6)
>       (SELECTFONT D 0)
>       (SETCHAR C +)
>       (SPECIAL color pop)
>       )
>    )
>
>Which special code is good for use in pdftex?
>I've tried without success:
>(CHARACTER O 53
>    (CHARWD R 1.0)
>    (CHARHT R 0.75)
>    (CHARDP R 0.25)
>    (MAP
>       (SPECIAL 0 0 0 0.3 k 0 0 0 0.3 K)
>       (SELECTFONT D 0)
>       (SETCHAR C +)
>       (SPECIAL 0 0 0 0.3 k 0 0 0 0.3 K)
>       )
>    )
>
>But maybe I didn't understand the virtual font mechanism
>correctly.
>
>Any idea?


just a guess:

   (SPECIAL pdf ....)

or otherwise

   (SPECIAL pdf: ...)

may work, since pdftex recognizes the pdf tag in specials.

Hans
-------------------------------------------------------------------------
                                   Hans Hagen | PRAGMA ADE | pragma at wxs.nl
                       Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------




More information about the pdftex mailing list