text along pathcurvedtext-v2@2824
commit68d527575690726bc134efc0917d190aa806865f
authorMichael J Gruber <michaeljgruber@users.sourceforge.net>
Fri, 16 Jun 2006 14:59:00 +0000 (16 16:59 +0200)
committerMichael J Gruber <michaeljgruber@users.sourceforge.net>
Fri, 16 Jun 2006 14:59:00 +0000 (16 16:59 +0200)
tree64af1d8e4321a2c1e1962d81b51e300e8ac40cbf
parent88d6b55822794204c08b0fdea1bc881557b98b07
text along path

The attached diff implements typesetting of text along
a path as a decorator (curvedtext). I put it in the bug
tracker so that it doesn't get lost. It's a diff to
r2824 (taking into account the reversal of trafos in
canvas.py (r2728->r2730)).

From the docstring:
    """a text decorator for curved text

    - text: is typeset along the path to which this
decorator is applied
    - relarclenpos: position for the base point of the
text (default: 0)
    - arlenfrombegin, arclenfromend: alternative ways
of specifying the position of the base point;
                                     use of
relarclenpos, arclenfrombegin and arclenfromend is
mutually exclusive
    - textattrs, texrunner: standard text arguments
(defaults: [] resp None)
    """

Files touched aside from deco.py:

dvifile.__init__() in dvifile.py gets a new parameter
singlecharmode which defaults to 0; dvifile.putchar()
switches to single character mode if set to 1.

texrunner.__init__(), texrunner.finishdvi(),
texrunner.text() and texrunner.textboxes() in text.py
get the same parameter so that it can be passed from
the texrunner to dvifile.

curvedtext switches to singlecharmode only while it is
needed.

Basic idea for curvedtext goes back to schindmi, I think.
pyx/deco.py
pyx/dvifile.py
pyx/text.py