Scribus Forums

Scribus => Scripts and Plugins => Topic started by: digirew on August 28, 2020, 09:05:56 PM

Title: Shrink textframe to amount of text?
Post by: digirew on August 28, 2020, 09:05:56 PM
Is there anyway to shrink a text frame to the amount of text that I have in the textframe?

I cant seem to find it in the help/docs.
Title: Re: Shrink textframe to amount of text?
Post by: utnik on August 28, 2020, 11:08:58 PM
hi digirew

yes, there is a function to 'adjust frame height to text' (at least in scribus 1.5.?). you'll find it in the context menu and in 'item' → 'adjust', but there is still a bug: there has to be at least one descender in the last line of text, otherwise this line won't fit inside of the frame.

utnik
Title: Re: Shrink textframe to amount of text?
Post by: AdmFubar on August 31, 2020, 06:24:56 AM
Actually today by accident I activated this feature. I think it was just through a click on the text frame as it suddenly snapped up to the end of the text on the page. Will have to investigate further on how I did it, will update soon as it is getting late here
Title: Re: Shrink textframe to amount of text?
Post by: digirew on September 14, 2020, 05:44:40 PM
Thanks,

However is it possible to do this via. script? and not the application (GUI) itself?


Andrew
Title: Re: Shrink textframe to amount of text?
Post by: a.l.e on September 14, 2020, 05:51:14 PM
yes you can do this with a script and there might be a script around that those it.

i could not find it in my collection, but you can have a look at this script

https://github.com/aoloe/scribus-script-collection/blob/master/text-vertical-align/text-vertical-align.py

and find out how to do it...

ciao
a.l.e