[XeTeX] Text on a path (was : Drop-shadows with outline fonts in XeTeX ?)

Tobias Schoel liesdiedatei at googlemail.com
Thu Jun 2 10:48:33 CEST 2011


Hi,

TikZ does the job in XeLaTeX (should also work in plain XeTeX, but 
that's your domain)

\documentclass{minimal}
\usepackage{fontspec}
\setmainfont[Ligatures=TeX]{Linux Biolinum O}

\usepackage{tikz}
\usetikzlibrary{decorations.text}

\begin{document}

\begin{tikzpicture}
\draw[very thin](xyz polar  cs: angle=0,x radius=5, y radius=2) arc 
(0:360:5 and 2);
\draw[very thick](xyz polar  cs: angle=60,x radius=5, y radius=2) arc 
(60:120:5 and 2);
\draw[very thick](xyz polar  cs: angle=240,x radius=5, y radius=2) arc 
(240:300:5 and 2);
\draw[decorate, decoration={text along path, 
text={www.thai-an.co.uk}}](xyz polar  cs: angle=120,x radius=5, y 
radius=2) arc (120:60:5 and 2);
\draw[decorate, decoration={text along path, text={Authentic Oriental 
Cuisine}}](xyz polar  cs: angle=240,x radius=5, y radius=2) arc 
(240:300:5 and 2);
\end{tikzpicture}


\end{document}

Documentation for TikZ says, that each character is put into a separate 
hbox to achieve the effect. (For whatever worth that information is to you.)

ciao

Toscho

Am 02.06.2011 08:25, schrieb Philip TAYLOR (Webmaster, Ret'd):
> My sincere thanks to Mojca to her suggestion for implementing
> drop shadows in XeTeX, which I am investigating further as
> I write. Now I have a second problem for the same task.
> Whilst signs 1 & 2 are linear, sign 3 requires text to be
> typeset on a path (in practice, on two ellipses : see attachment [1]),
> and once again I would be most grateful for any suggestions
> as to how this can be accomplished using XeTeX.
>
> Philip Taylor
> --------
> Note that the upper and lower text are set on two different
> "concentric" (?conelliptic?) ellipses, such that the x-height
> of the lower text abuts the same ellipse as the baseline of the
> upper text.
>
>
>
>
>
> --------------------------------------------------
> Subscriptions, Archive, and List information, etc.:
>    http://tug.org/mailman/listinfo/xetex


More information about the XeTeX mailing list