# [NTG-context] How to rotate a single character on a line?

Hans Hagen ntg-context@ntg.nl
Wed, 24 Mar 2004 10:19:51 +0100

At 16:22 23/03/2004, you wrote:
>Hi all.
>
>I want to use some arrows of the ZapfDingbats fonts. Most of the arrows
>included in this font are directed from left to right. I tried to use
>\rotate to produce arrows directed to different directions. Yet, rotate
>produces new lines.
>
>Example:
>
>\definefontsynonym[ZapfDingbats][zd]
>\definefont[Zapf][ZapfDingbats at 24pt]
>
>\rotate[rotation=180]{\Zapf\char234} {\Zapf\char234}
>
>The example is intended to produce an arrow directed to the left followed
>by an arrow directed to the right. The result however is an arrow directed
>to the left followed by a new line with an arrow directed to the right.
>
>intended:
><- ->
>
>result:
><-
>->
>
>Does someone know how the new line can be suppressed?

(untested)

\definesymbol[whatever][\dontleavehmode\rotate[rotation=180]{\getglyph{ZapfDingbats}{234}]

\symbol[whatever]