~ubuntu-branches/debian/sid/pyx/sid

« back to all changes in this revision

Viewing changes to examples/text/textalongpath.txt

  • Committer: Package Import Robot
  • Author(s): Stuart Prescott
  • Date: 2012-12-17 13:45:12 UTC
  • mto: (9.1.1 experimental)
  • mto: This revision was merged to the branch mainline in revision 10.
  • Revision ID: package-import@ubuntu.com-20121217134512-q85pr3q75fxii7mq
Tags: upstream-0.12.1
ImportĀ upstreamĀ versionĀ 0.12.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Text along path
 
2
 
 
3
In order to set text along a given path, you can use the `curvedtext()`
 
4
decorator. The example shows a few useful parameter settings for this
 
5
decorator.
 
6
 
 
7
! To output just the curved text, but not the path, you can use the
 
8
draw method of the canvas instead of the stroke method. By that the
 
9
path is omitted in the output completely. In contrast, if you set the
 
10
linewidth to zero instead, the path will still be visible, as those
 
11
lines will be rendered as the thinnest available linewidth on the
 
12
output device according to the PostScript and PDF specification.