Does anyone know how to highlight a sample of letters in a text object with a solid colour using Inkscape? I saw a similar post with the question of how to highlight the entire text object (the post can be found here), but I only want to highlight a sample of letters instead of the entire thing. I don't want to add a rectangle behind the text using the rectangle tool.
-
What do you mean by rectangle, do you want the, and what do you mean by segment? This question is not very clear. By rectangle do you mean the shape, or do you mean the stroke that creates a border around the object? Typically segment is used to refer to path-segments, did you want to color background of the letters? Or do you want the letters to sit ontop of the background?– JΛYDΞVCommented May 29, 2022 at 2:22
-
It sounds like you want to do somthing like in this image I uploaded ya?– JΛYDΞVCommented May 29, 2022 at 2:32
-
Thank you for telling my to be more clear.– user174261Commented May 29, 2022 at 3:55
-
I'm not really an Inkscape user. In InDesign I would use a thick underline like in this answer. But Inkscape doesn't seem to have an easy way to underline part of a text. Looking at this answer makes me think it's too quirky to work with. Just drawing a rectangle seems more appealing. Why is it that you don't want to do that?– WolffCommented May 29, 2022 at 10:13
-
I am an Inksape user. Text has no background attribute - there's no such thing - only a fill/stroke, so what you want is not possible. Use a rectangle instead.– Billy KerrCommented May 29, 2022 at 14:01
1 Answer
No, it's not possible, if you mean to do a common thing in text editors – setting a background color of (individual) letters.
Letters in Inkscape are created from paths, they have no bounding box (“a background”) as in text editors, so there is nothing as a foreground / background color – only a stroke / fill color.
From this follows that you may highlight a part of your text only by selecting it and then changing its fill or stroke color:
-
The reason I thought it was possible was because there was a way to do it to an entire text object as seen here.– user174261Commented May 29, 2022 at 18:48
-
@JohnnyR., I understand you, but what you want is not possible in Inkscape, I'm sorry. Effects work on the whole objects only, not on a cutoff of a text object. You may break a text object into individual objects and apply an effect only on one of them, but then you lose all benefits of your original text object.– MarianDCommented May 29, 2022 at 21:13