[scribus] Vertical centering of text in a frame
snowshed1 at q.com
Sun Feb 26 02:00:49 UTC 2017
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,
>> 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
> 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.
I'll give your script a try and get back and let you know.
Mac OS X 10.11.6
Firefox 51.0.1 (64 bit)
"My brain is like lightning, a quick flash
and it's gone!"
More information about the scribus