[scribus] Vertical centering of text in a frame

Ken Springer snowshed1 at q.com
Sun Feb 26 02:52:47 UTC 2017

On 2/25/17 7:00 PM, Ken Springer wrote:
> On 2/25/17 6:38 PM, Gregory Pittman wrote:
>> On 02/25/2017 07:30 PM, Ken Springer wrote:
>>> Scribus 1.4.6
>>> Windows 7
>>> I want to center a line of text in a frame.  But so far have not found a
>>> reliable way to do this.
>>> I didn't find any easily selectable option, but for a couple of frames I
>>> could "fake it" by using the baseline offset in advanced settings.
>>> But with frames of a lower height, it doesn't work.
>>> I found a script here that claimed to do it,
>>> http://superuser.com/questions/231576/scribus-vertically-align-text-within-a-text-framed,
>>> but it doesn't.
>>> Is it even possible in 1.4.6?  What about 1.5.2?  For the current
>>> project, 1.5.2 is not an option but I would like to know if it can be done.
>> In the 1.5.x series, there is now a setting for this. In the text tab or
>> Properties or Text Properties palette (1.5.3svn), under Columns and Text
>> Distances, at the top you will see Vertical Alignment, with choices of
>> Top, Middle, and Bottom.
>> For the 1.4.x versions, I did create a script that will center text
>> vertically:
>> https://wiki.scribus.net/canvas/Centering_text_vertically_in_a_frame
>> which works pretty well. What it does is use the linespacing, the number
>> of lines of text, the height of the frame, and divides the leftover
>> space in two and uses that to set the Top Distance. It can also be
>> recursive, for example, if you run it, but then add some more text, you
>> can rerun the script to reset the Top Distance.
> Hi, Greg,
> I'll give your script a try and get back and let you know.

That didn't go so well!   LOL  Wiped out the whole document.

But I had done a save just before trying it, so nothing was lost.

I actually broke out laughing.  I was so angry at Dell's forum captcha, 
I need the laugh, so it was good.  <G>

Mac OS X 10.11.6
Firefox 51.0.1  (64 bit)
Thunderbird 45.7.1
"My brain is like lightning, a quick flash
      and it's gone!"

More information about the scribus mailing list