[texhax] pgf: how to deform fonts

Victor Ivrii vivrii at gmail.com
Fri Nov 25 23:33:09 CET 2011


On Fri, Nov 25, 2011 at 4:19 PM, Reinhard Kotucha
<reinhard.kotucha at web.de> wrote:
> On 2011-11-25 at 11:24:33 -0500, Victor Ivrii wrote:
>
>  > I am trying to draw a cube with digits on its visible faces. Therefore
>  > digits on the side faces should be deformed. Is there any easy way to
>  > do this?
>
> \pgftransformcm (page 639) allows you to change the current
> transformation matrix.  You have to either use it within a PS/PDF
> group or transform back manually afterwards.
>
>  \begin{pgfscope}
>    \pgftransformcm{1}{0.2}{0}{1}{\pgfpoint{0}{0}}
>    <some graphics elements or text>
>  \end{pgfscope}
>
> or
>
>  \pgftransformcm{1}{0.2}{0}{1}{\pgfpoint{0}{0}}
>  <some graphics elements or text>
>  \pgftransformcm{1}{5}{0}{1}{\pgfpoint{0}{0}}
>
>

Thanks! It is exactly what I need. I should add that the text should
be entered not by node command but by pgftext


Victor

-- 
========================
Victor Ivrii, Professor, Department of Mathematics, University of Toronto
http://www.math.toronto.edu/ivrii



More information about the texhax mailing list