Author Topic: Shrink textframe to amount of text?  (Read 204 times)

digirew

  • Newbie
  • *
  • Posts: 30
  • Karma: 0
  • Scribus User
Shrink textframe to amount of text?
« on: August 28, 2020, 10: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.

utnik

  • Hero Member
  • *****
  • Posts: 1458
  • Karma: 17
Re: Shrink textframe to amount of text?
« Reply #1 on: August 29, 2020, 12:08:58 am »
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

AdmFubar

  • Newbie
  • *
  • Posts: 42
  • Karma: 0
  • Scribus User
Re: Shrink textframe to amount of text?
« Reply #2 on: August 31, 2020, 07: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

digirew

  • Newbie
  • *
  • Posts: 30
  • Karma: 0
  • Scribus User
Re: Shrink textframe to amount of text?
« Reply #3 on: September 14, 2020, 06:44:40 pm »
Thanks,

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


Andrew

a.l.e

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2418
  • Karma: 35
    • the graphics lab
Re: Shrink textframe to amount of text?
« Reply #4 on: September 14, 2020, 06: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