You can access it using sed/grep or some such tool.  Opening the xcf
file in a text editor, even after an autocrop, the text information
remains in the following format:

(text "test text")
(font "Sans")
(font-size 18.000000)
(font-size-unit pixels)
(hinting yes)
(antialias yes)
(language "en-us")
(base-direction ltr)
(color (color-rgb 0.000000 0.000000 0.000000))
(justify left)
(box-mode dynamic)
(box-unit pixels)

I posted a grep example here:
http://registry.gimp.org/node/25145#comment-11229


-Rob A>

On Mon, Aug 8, 2011 at 5:21 PM, Volker Lenhardt
<volker.lenha...@uni-due.de> wrote:
> Am 08.08.2011 21:00, schrieb Ofnuts:
>> On 08/08/2011 12:57 PM, Volker Lenhardt wrote:
>>> Gimp 2.6.8 on Linux openSUSE 11.3
>>>
>>> I need to extract text and font from a text layer. No problem, I
>>> thought, with gimp-text-layer-get-text and gimp-text-layer-get-font.
>>>
>>> But I find that the original text layer was cropped with
>>> plug-in-autocrop-layer. Nevertheless Gimp lets me edit the text with the
>>> text edit tool - after a confirmation dialog.
>>>
>>> But I can't get the text with script-fu. Is there a way to manage it?
>>> There are many files involved.
>>
>> The layer name is "usually" the text contents, so instead of getting the
>> text you can retrieve the name. Your Mileage May Vary.
>
> It does vary, I'm sorry for it. Thank you all the same.
>
> Volker
> _______________________________________________
> Gimp-user mailing list
> Gimp-user@lists.XCF.Berkeley.EDU
> https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user
>
_______________________________________________
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user

Reply via email to