The following code applies a 3 pt blue stroke to red-filled glyphs, but has the undesirable side-effect of changing the colour of TeX rules to the stroke colour.  Is it possible, does anyone know, to control the stroke and fill colour of TeX rules (a) independently, and (b) orthogonally to that of TeX glyphs ?

Philip Taylor

--------

% !TeX Program=XeTeX

\magnification 4096

\hsize = 210 true mm
\vsize = 297 true mm

\pdfpagewidth = \hsize
\pdfpageheight = \vsize

\advance \hoffset by -1 true in
\advance \voffset by -1 true in

\font \tenrm = "Calibri Bold"

\let \Hrule = \hrule
\let \Vrule = \vrule

\def \hrule {\Hrule height 4 true pt depth 4 true pt}
\def \vrule {\Vrule width 8 true pt}

\topskip 0 pt plus 1 fill

\special{pdf:bcolor [1.0  0.0 0.0] [0.0 0.0 1.0]} % first defines fill colour, second stroke colour \special{pdf:literal direct 0.3 w 2 Tr} stroke width followed by rendering mode

\centerline
    {%
        \vbox spread 1 pc
            \bgroup
                \hsize = 0,210 \hsize
                \hrule
                \vss
                \hbox to \hsize {\vrule \hss Hello\hss \vrule}
                \vss
                \hrule
            \egroup
    }

\end



--------------------------------------------------
Subscriptions, Archive, and List information, etc.:
 http://tug.org/mailman/listinfo/xetex

Reply via email to