[pdftex] how to use \pdffontattr?

Hans Hagen pragma at wxs.nl
Mon Aug 18 11:12:01 CEST 2003

At 00:58 17/08/2003 +0200, Rosa Mª Gómez Flores wrote:
>I'd like to write a text with 'hollow' letters -i mean, I wanna to draw 
>only the contour of letters. It is possible to get it by setting the 
>border and background colors of the text? Does the \pdffontattr command 
>allow it? (I haven't found  any docu about it)

Since this effect will normally only be used for special cases (and not 
cross page boundaries), you can safely use:

% plain example that should also work in "whatevertex"


\def\outlined#1{{\pdfliteral{1 Tr}#1\pdfliteral{0 Tr}}}

\font\normaltest=cmr10  at 60pt
\font\boldtest  =cmbx10 at 60pt

\normaltest test \outlined{\boldtest test} test

                                   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
                        information: http://www.pragma-ade.com/roadmap.pdf
                     documentation: http://www.pragma-ade.com/showcase.pdf

More information about the pdftex mailing list