It is currently Sat Jul 06, 2024 9:16 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: howto underline text in gimp's python script
PostPosted: Tue Jan 08, 2013 3:46 pm  (#1) 
Offline
New Member

Joined: Jan 08, 2013
Posts: 1
Hi Guys
How can I add underline for just created text layer ?
I'm using gimp 2.8 my current code looks like this :
textlayer = pdb.gimp_text_layer_new(
newimage, #(13, 'image', 'The image'),
'Some underlined text ', #(4, 'text', 'The text to generate (in UTF-8 encoding)'),
'Sans', #(4, 'fontname', 'The name of the font'),
22, #(3, 'size', 'The size of text in either pixels or points (0 <= size <= 8192)'),
0#(0, 'unit', 'The units of specified size'
)
pdb.gimp_image_add_layer(newimage, textlayer, 0)


Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
Top
 Post subject: Re: howto underline text in gimp's python script
PostPosted: Tue Jan 08, 2013 6:05 pm  (#2) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4756
Select a strip at the bottom of the layer and bucket-fill, or create a thin layer that follows the bottom of your text layer and bucket-fill it.

_________________
Image


Top
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Eager to learn to input text in python script (Solved)

2

No new posts Attachment(s) manipulate a portion of text inside a text layer using python-fu

2

No new posts Attachment(s) Learning to do first Python script

6

No new posts .py script not showing under Python-Fu

3

No new posts Attachment(s) My first Python Script for Gimp

7



* Login  



Powered by phpBB3 © phpBB Group