Gimptalk - Premier Gimp Community: [SOLVED]Using Scripting to create multiple Font setting Pre-sets - Gimptalk - Premier Gimp Community

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

[SOLVED]Using Scripting to create multiple Font setting Pre-sets

#1 User is offline   stargood 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 1
  • Joined: 01-February 12

  Posted 05 February 2012 - 11:22 AM

Hi all. One of the things I use the GIMP for is the typesetting of scanlated Manga. There are 9 or 10 typestyles I will use with maybe half of them being used more frequently than the others. Changing from one style to another usually includes changing the font name, size, and line-spacing, and possibly other parameters. It would be convenient if I could just select a menu option to change styles.

So, for example to change back to regular speech I would change the font name to Wild Words, size to 14 px, and the line spacing to +1.8. It would be nice to instead just select a menu option, say maybe Filters/Manga/Regular Speech and have all of those set for me at once. The only Script-Fu procedure I could find for any global font options was "gimp-context-set-font" which will set the active font for subsequent operations.

There are gimp-text-layer-set-** procedures for all font options, but they only act on the current text layer and do not affect the text control toolbox settings, which is what I want. How would I go about implementing scripting procedures that would be equivalent to gimp-context-set-font-size, gimp-context-set-line-spacing, etc. if they existed?

Edit:

Well it seems I posted too quickly. After exploring the Tool Options Menu activated by clicking the little button at the top right of the Tool Options dialog, I found my answer. It seems that the functionality I was looking for is already built into the GIMP. It is possible to save, re-save, rename, or delete sets of selected options. Now I can save all my different font settings into presets!

Sorry for the noise.

This post has been edited by stargood: 07 February 2012 - 03:42 PM

0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic