Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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):

As I am not allowed to post an image for easy illustration (1st post) I will give you a minimal example of what I am talking about.

LaTeX minimal example:

    \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?

Thanks a lot!

enter image description here

share|improve this question
    
and what is your problem? –  Herbert Dec 14 '12 at 16:46
    
@Herbert I guess the problem is replication of the glowing effect below to the curved path. –  percusse Dec 14 '12 at 16:47
    
ah I see. That is possibble but needs some modifications of the code –  Herbert Oct 8 '13 at 7:19
add comment

migrated from stackoverflow.com Dec 14 '12 at 16:40

This question came from our site for professional and enthusiast programmers.

1 Answer

I'm not sure that this is really an answer, but according to the documentation on \pscharpath and \pstextpath:

With the optional *, the character path is not removed from the PostScript environment at the end. This is mainly for special hacks. For example, you can use \pscharpath* in the first argument of \pstextpath, and thus typeset text along the character path of some other text. However, you cannot combine \pscharpath and \pstextpath in any other way. E.g., you cannot typeset character outlines along a path, and then fill and stroke the outlines with \pscharpath.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.