[solved] Gradient for mulit-line text?

Post questions on how to use or achieve an effect in Inkscape.
Tallguy
Posts: 4
Joined: Thu Jun 26, 2008 12:32 am

[solved] Gradient for mulit-line text?

Postby Tallguy » Thu Jun 26, 2008 12:54 am

Hello. I was wondering if there was a way to apply a gradient to a multi-line text object so that each line got it's own gradient?

Example:

This is line 1
This is line 2
This is line 3

If I have a vertical gradient that goes from black to white, I'd like both lines to have their tops black and bottoms white. Can I do this with a single text object, or do I have to break each line into its own object? The work that I'm doing involves several paragraphs of text. Breaking them out line by line would be a hassle if I had to do it that way.

Thanks,
-- Bill

User avatar
sas
Posts: 404
Joined: Sat Oct 06, 2007 5:42 am

Re: Gradient for mulit-line text?

Postby sas » Thu Jun 26, 2008 1:57 am

Make the gradient cover only one line, then set it to repeat. Strangely, the gradient editor doesn't seem to have an option for this, but it's available in the Fill and Stroke dialog: set Repeat to "direct".

Tallguy
Posts: 4
Joined: Thu Jun 26, 2008 12:32 am

Re: Gradient for mulit-line text?

Postby Tallguy » Fri Jun 27, 2008 3:15 am

Thanks. I tried that, and it works for a few lines, but then gets out of sync. Odd. I'll have to try being more precise. Or I'll just break the lines into separate objects.

llogg
Posts: 443
Joined: Tue Mar 11, 2008 7:30 am

Re: Gradient for mulit-line text?

Postby llogg » Fri Jun 27, 2008 5:53 am

You could try just having multiple evenly spaced stops on the gradient. For instance, a three-line text object would have six stops. Then simply manipulate the gradient to cover the text. When home I'll attempt this and post the results.

Tallguy
Posts: 4
Joined: Thu Jun 26, 2008 12:32 am

Re: Gradient for mulit-line text?

Postby Tallguy » Fri Jun 27, 2008 6:04 am

llogg wrote:You could try just having multiple evenly spaced stops on the gradient. For instance, a three-line text object would have six stops. Then simply manipulate the gradient to cover the text. When home I'll attempt this and post the results.
I was trying that as well but had to leave for work. That might be the way to go. I just need to get speedier with the gradient editing. Thanks!

llogg
Posts: 443
Joined: Tue Mar 11, 2008 7:30 am

Re: Gradient for mulit-line text?

Postby llogg » Fri Jun 27, 2008 7:40 am

I haven't had much luck. I think the easiest thing to do is object to path, then break apart, then combine each line as a separate path and then apply the gradient to each individually. It sounds like a lot of work, but it's been much easier (and more successful) than trying to manipulate the gradient. It will be interesting to see if somebody comes up with a shortcut.
It's a curious problem and highlights the uniqueness of text objects.

Tallguy
Posts: 4
Joined: Thu Jun 26, 2008 12:32 am

Re: Gradient for mulit-line text?

Postby Tallguy » Mon Jul 07, 2008 7:03 am

Well, I actually went with the Repeat Direct option. It's just that if you have long passages of text you have to be fairly precise as to where the start and end of the gradient are, otherwise it gets out of synch. I done learned sumthin'! Thanks for the help, folks. Hoepfully this will be useful to someone else, too.

llogg
Posts: 443
Joined: Tue Mar 11, 2008 7:30 am

Re: Gradient for mulit-line text?

Postby llogg » Mon Jul 07, 2008 7:37 am

would you mind posting your results? I'm curious how it turned out with that method.


Return to “Help with using Inkscape”