![]() | Separating a Text-Path into
![]() |
A and a can be combined to form a . The underlying path will not be visible (except in path edit mode) and the text will run along the path. The horizontal anchor determines whether the text should start at the first of the underlying path or if it should be centred along the path or if it should be right aligned at the end control point. The vertical anchor determines whether the base, bottom, top or middle of the text should be aligned on the path. Note that if the text is longer than the path, the text will be truncated to fit.
For example, the text area and path in Figure 8.28(a) are combined to form a text-path. The original text area's horizontal anchor was set to left, so the text along the path starts at the first in Figure 8.28(b). In Figure 8.28(c) the horizontal anchor has been changed to centre, and in Figure 8.28(c) the horizontal anchor has been changed to right.
|
Once a path has been combined with a text area, the path line style attributes are lost as the path is only used as a guide to position the text. Most path functions, such as path union, are applied to the underlying path and the text is adjusted to follow the new path. Transformations using the rotate, scale and shear functions are applied to the underlying path not the text. You can either transform the text using the transformation functions before combining it with a path or transform it after combining by changing the text transformation matrix.
Version 2.0 of the pgf package has limited text along a path
support provided by the decorations.text library. This only supports
the (left, base) anchor and doesn't support the font transformation.
If you export an image containing a text-path to a
pgfpicture environment, you must include the
decorations.text library:
\usepackage{pgf} \usepgflibrary{decorations.text}
Alternatively, you can either convert the text to a path or split the text before you export the image. See the pgf manual for further details on text along a path decorations.
See also:
![]() | Separating a Text-Path into
![]() |