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

Change Font

This discussion is connected to the gimp-user-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.

3 of 3 messages available
Toggle history

Please log in to manage your subscriptions.

Change Font bedwere 11 Sep 16:56
  Change Font rich404 12 Sep 08:09
  Change Font Shlomi Fish 12 Sep 08:20
2019-09-11 16:56:07 UTC (over 4 years ago)
postings
1

Change Font

Hello gimp gurus,

I have files with many text layers. Is there a quick way to change the font name and font size?
I tried with

sed -i "s/Delicious SmallCaps, Medium/Latin Modern Roman Caps/g" file.xcf sed -i "s/font-size 18/font-size 15/g" file.xcf

but that corrupted the file. Thank you!

bedwere (via www.gimpusers.com/forums)
rich404
2019-09-12 08:09:39 UTC (over 4 years ago)

Change Font

Hello gimp gurus,

I have files with many text layers. Is there a quick way to change the font name
and font size?
I tried with

sed -i "s/Delicious SmallCaps, Medium/Latin Modern Roman Caps/g" file.xcf
sed -i "s/font-size 18/font-size 15/g" file.xcf

but that corrupted the file. Thank you!

Without trying to edit Gimp image files, possible workarounds.

A plug-in changefont.py to change size/font in all text layers except those in a layer group https://github.com/akkana/gimp-plugins/blob/master/changefont.py

A (fixed) plug-in group_chfont_group.py only changes text layers in a group https://www.gimp-forum.net/Thread-Help-Plugin-killed-by-last-update?pid=2060#pid2060 Two plugins in the zip choose one of them.

A script to group/ungroup layers. http://chiselapp.com/user/saulgoode/repository/script-fu/wiki?name=sg-group-linked-layers

Need to apply as a batch? maybe the first will work.

rich404 (via www.gimpusers.com/forums)
Shlomi Fish
2019-09-12 08:20:08 UTC (over 4 years ago)

Change Font

Hi,

On Wed, 11 Sep 2019 18:56:07 +0200 bedwere wrote:

Hello gimp gurus,

I have files with many text layers. Is there a quick way to change the font name and font size?
I tried with

sed -i "s/Delicious SmallCaps, Medium/Latin Modern Roman Caps/g" file.xcf sed -i "s/font-size 18/font-size 15/g" file.xcf

try using python-fu from within gimp or gimp-console: https://www.gimp.org/docs/python/ . See https://github.com/shlomif/Freenode-programming-channel-FAQ/blob/master/FAQ_with_ToC__generated.md#i-want-to-learn-programming-which-language-should-i-start-with for some learning links.

but that corrupted the file. Thank you!

-----------------------------------------------------------------
Shlomi Fish       http://www.shlomifish.org/
https://youtu.be/GoEn1YfYTBM - Tiffany Alvord - “Fall Together”

I HAVE NEITHER BEEN THERE NOR DONE THAT
    — Bart Simpson on chalkboard in episode AABF17

Please reply to list if it's a mailing list post - http://shlom.in/reply .