RSS/Atom feed Twitter
Site is read-only, email is disabled

Text color change

This discussion is connected to the gimp-developer-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.

This is a read-only list on gimpusers.com so this discussion thread is read-only, too.

6 of 6 messages available
Toggle history

Please log in to manage your subscriptions.

Text color change Thales img 16 Mar 03:52
  Text color change Akkana Peck 17 Mar 19:10
   Text color change Sven Neumann 17 Mar 20:34
   Text color change Thales img 17 Mar 20:58
    Text color change Sven Neumann 17 Mar 21:33
     Text color change Thales img 17 Mar 23:08
Thales img
2010-03-16 03:52:34 UTC (over 14 years ago)

Text color change

Is there any way to change the color of part of a text? Like this: This wordis red
I'm asking 'cause if there isn't an easy way is something to think about.

Thanks,

Thales

*(Sorry if I sent it before)*

Akkana Peck
2010-03-17 19:10:37 UTC (over 14 years ago)

Text color change

Thales img writes:

Is there any way to change the color of part of a text? Like this: This wordis red
I'm asking 'cause if there isn't an easy way is something to think about.

Probably the easiest way is to use bucket fill and click on each of the letters. Note that that will change the layer into a graphics layer and lose the special text information, like font and size.

A more elaborate, but more flexible, way, is to make a new layer on top of your text layer. Make a selection in that layer covering whatever part of the text you want in a different color (e.g. a rectangle covering only that word). Fill the rectangle with your desired color. Then, in the Layers dialog, set the mode of the new layer to Lighten Only. If your text was black, that will turn the word your desired color. If you started with a different color of text, you might need a different layer mode (experiment with all of them).

Depending on your background color, this might also change some of the background around the text, but there are some ways to get arond that. "Merge down" on the layer will merge it only with the text layer below it, or you could use the text layer as a mask to mask off everything but text in the color layer. The best approach depends on exactly what effect you're trying to achieve and what colors are involved.

...Akkana

Sven Neumann
2010-03-17 20:34:41 UTC (over 14 years ago)

Text color change

On Wed, 2010-03-17 at 11:10 -0700, Akkana Peck wrote:

Thales img writes:

Is there any way to change the color of part of a text? Like this: This wordis red
I'm asking 'cause if there isn't an easy way is something to think about.

Probably the easiest way is to use bucket fill and click on each of the letters. Note that that will change the layer into a graphics layer and lose the special text information, like font and size.

A more elaborate, but more flexible, way, is to make a new layer on top of your text layer. Make a selection in that layer covering whatever part of the text you want in a different color (e.g. a rectangle covering only that word). Fill the rectangle with your desired color. Then, in the Layers dialog, set the mode of the new layer to Lighten Only. If your text was black, that will turn the word your desired color. If you started with a different color of text, you might need a different layer mode (experiment with all of them).

As far as I can see GtkTextTag has properties for color, so it shouldn't be too difficult to extend the support for text styles in git master so that it also supports changing the text color on a per-glyph basis.

Sven

Thales img
2010-03-17 20:58:11 UTC (over 14 years ago)

Text color change

Thank you so much for your attention Akkana, the point is I'm able to change the color, I'm just looking if there is an easiest way. Like we now can do with Bold, Italic, etc.

Sven, thanks for the reply too, I don't no anything about technicals details, but thanks anyway.

Thales

Sven Neumann
2010-03-17 21:33:28 UTC (over 14 years ago)

Text color change

On Wed, 2010-03-17 at 16:58 -0300, Thales img wrote:

Thank you so much for your attention Akkana, the point is I'm able to change the color, I'm just looking if there is an easiest way. Like we now can do with Bold, Italic, etc.

Sven, thanks for the reply too, I don't no anything about technicals details, but thanks anyway.

Then please ask on the gimp-user mailing-list. This list is for technical discussions and your question would have been more appropriate on gimp-user.

Thanks,
Sven

Thales img
2010-03-17 23:08:03 UTC (over 14 years ago)

Text color change

Easy man, easy, I asked here 'cause if it wouldn't possible change the color it would be a suggestion for whose that develop.

Thanks anyway, sorry if it wasn't a good idea,

Thales

On Wed, Mar 17, 2010 at 5:33 PM, Sven Neumann wrote:

On Wed, 2010-03-17 at 16:58 -0300, Thales img wrote:

Thank you so much for your attention Akkana, the point is I'm able to change the color, I'm just looking if there is an easiest way. Like we now can do with Bold, Italic, etc.

Sven, thanks for the reply too, I don't no anything about technicals details, but thanks anyway.

Then please ask on the gimp-user mailing-list. This list is for technical discussions and your question would have been more appropriate on gimp-user.

Thanks,
Sven