User Guide
GNU Image Manipulation Program
156 / 653
(gimp-layer-set-offsets theText theBuffer theBuffer)
Go ahead and save your script, and try it out after refreshing the database.
All that is left to do is return our image, the layer, and the text layer. After displaying the image, we add this line:
(list theImage theLayer theText)
This is the last line of the function, making this list available to other scripts that want to use it.
To use our new text box script in another script, we could write something like the following:
(set! theResult (script-fu-text-box
"Some text"
"Charter" "30"
’(0 0 0)
"35"
)
)
(gimp-image-flatten (car theResult))
Congratulations, you are on your way to your Black Belt of Script-Fu!