Multicolor text

From Inkscape Wiki
Revision as of 07:15, 24 March 2006 by Takometer (talk | contribs)
Jump to navigation Jump to search

Multicolor text can be done in inkscape, although it is a bit of hack.

First save your svg file and find the text of interest in the XML file. Find the tspan tag which encloses your text and add tspan tags which delineate the colors to be found in your text.

Specify the color for your text as a "fill" attribute, as follows:

<tspan style="fill:#ff0000">this</tspan> <tspan style="fill:#00ff00">is</tspan> <tspan style="fill:#0000ff">multicolor</tspan> <tspan style="fill:#000000">text</tspan>

Now your image will display the text in multiple colors. This is particularly useful for snapping text to curves, which can be apain otherwise.

link title