I am interested in drawing a specially rendered text on a curve.
The LaTeX package pst-text provides a function to draw text on a curve (pstextpath
) and a function to specially render text (pscharpath
):
MWE for what I want to combine:
\documentclass{scrartcl}
\usepackage{pstricks}
\usepackage{pst-plot}
\usepackage{pst-text}
\usepackage[final]{pst-pdf}
\begin{document}
\psset{unit=.5cm,plotpoints=200}
\begin{pspicture}(-5,-2)(5,1)
% Specially Rendered Text:
\rput(0,-1)
{
\DeclareFixedFont{\RM}{T1}{ptm}{b}{n}{10pt}
\pscharpath[linecolor=orange,fillstyle=solid,fillcolor=black,linewidth=0.3pt]{\RM Specially Rendered Text}
}
% Text on a Curve:
\pstextpath[c](0,0)
{
\pscustom[linestyle=none]
{
\psplot{-3}{3}{0.5 x x mul 0.1 mul sub}
}
}
{
\DeclareFixedFont{\RM}{T1}{ptm}{s}{n}{10pt}
\RM Text on a Curve
}
\end{pspicture}
\end{document}
Summary: How to write specially rendered text on a curve?