Is there a way to find name of fonts used within Gimp .xcf file?

link|improve this question
Found out how... open it with something like scite or notepad++... Will answer my question in seven hours... – jaksco Jun 18 '11 at 17:26
feedback

1 Answer

up vote 1 down vote accepted

Apart from opening the file in a text editor, I found another way to do so from within GIMP, mentioned in a German GIMP forum.

This is a Python script that can be executed from the GIMP's built-in Python console:

>>> for image in gimp.image_list():
...   for layer in image.layers:
...     try:
...       layer.parasite_find('gimp-text-layer').data
...     except AttributeError:
...       pass
...

It runs across all images loaded, across all layers, and dumps the data of all text layers, including font names.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.