Easiest way to place text precisely in the middle of a frame (stable vers 1.4.8)

Previous topic - Next topic

T-buch

Easiest way to place text precisely in the middle of a frame:
 - that is "align centre horizontal" (align equal amount of space on the left and right side of the text)
and align centre vertical (align equal amount of space at the top and bottom of the text)

Like this

¤PC2 (00968).jpg

PatJr

I got 1.4.8 portable to run on a W11 install

is
Windows>Align and Distribute
not working?

It worked on my portable, just select Page as the Relative to:

also, this is aligning the frame not the text

if you need to use big text like that, it might be better if it was converted to outlines

T-buch

Quote from: PatJr on February 22, 2023, 04:52:16 PM[.....]
if you need to use big text like that,.....

It is not a very large text. First upload was just a cut
Maybe this upload makes more sense (also just a sample/cut of a bigger project)
¤PC2 (00972).jpg

I need the aligning to the frame

My solution for a newbie: Make the text in a text box and make all lines and area transparent. Next is to place that text box manually in the middle of a rectangular blue-filled shape

Thanks for you reply

AdmFubar

Easiest is to upgrade to 1.5. There is a vertical align option in text properties.
Ok reread your message.. You are trying to align to the frame. You  really want to upgrade to 1.5 branch, while it is considered a development version, it is stable and has the option you are looking for.

In 1.5 in text properties, look for  "Columns & Text Distances" first entry is the Vertical Alignment, Options are top middle and bottom.
Once you are satisfied with your text placement, select the text box and switch to the Properties tab. You can change the color of the background and outline from there (Fill & Stroke)
Using Scribus 1.6.1, openSUSE 15.5
Advanced hobbyist

PatJr

Quote from: AdmFubar on February 22, 2023, 09:47:26 PMEasiest is to upgrade to 1.5. There is a vertical align option in text properties.
Ok reread your message.. You are trying to align to the frame. You  really want to upgrade to 1.5 branch, while it is considered a development version, it is stable and has the option you are looking for.

In 1.5 in text properties, look for  "Columns & Text Distances" first entry is the Vertical Alignment, Options are top middle and bottom.
Once you are satisfied with your text placement, select the text box and switch to the Properties tab. You can change the color of the background and outline from there (Fill & Stroke)

Thanks for the info.
this program gets deeper every time I use it

T-buch

Quote from: AdmFubar on February 22, 2023, 09:47:26 PMupgrade to 1.5 branch

Thanks for your advice. It is written that the 1.4.8 is she stable version - But if this is the STABLE* child I have (had) my concerns to upgrade to a version not labeled with that "stable mark", especially because you can not use the later versions and use some of the new functions, save it - and go back top use the 4-series

*I have lots of errors - especially the undo function, program freezes and crashes already with the so-called stable version

Nermander

What can help to know here is when you enter values for position you can use math. I think you even can write like "(297-25)/2". Yes, it seems to work, placing a 25 mm high text frame in the middle of an A4 page.

Also note that the X and Y values are related to the reference point of the frame. The reference point can be any corner, middle of any side or the center of the frame.

T-buch

Quote from: Nermander on February 23, 2023, 04:31:20 PMThe reference point can be any corner, middle of any side or the center of the frame.

Can you set a reference point to a frame somewhere places on the side?

MrB

Quote from: T-buch on February 23, 2023, 08:43:04 AMI have lots of errors - especially the undo function, program freezes and crashes already with the so-called stable version

1.4.8 is an aged old codebase. 1.5.x is much stabler and has many more features. We are preparing 1.6.0 stable release from 1.5.x to release in the next few months. There will not be that many changes to code in that process.

Nermander

Quote from: T-buch on February 23, 2023, 09:12:11 PMCan you set a reference point to a frame somewhere places on the side?

I see i remembered wrong, the Base point can only be set to corners or the middle, not the middle of a side.

T-buch

Quote from: MrB on February 23, 2023, 09:53:47 PM
Quote from: T-buch on February 23, 2023, 08:43:04 AMI have lots of errors - especially the undo function, program freezes and crashes already with the so-called stable version

1.4.8 is an aged old codebase. 1.5.x is much stabler and has many more features. We are preparing 1.6.0 stable release from 1.5.x to release in the next few months. There will not be that many changes to code in that process.

Good to know.
ALSO...

The idea of your "Quick-Start Guide" is a very good idea. The nearest educational way - by taking the beginner in the hand with well-chosen illustrations, - not only talking "about it" - how the program works but (also) "showing it" with concrete examples, is really rewarding for the understanding of the program
 - I really think you should give it an update  :)

T-buch

(I don't hope I'm annoying... at least not in a none-constructive way  ::) )

I have trying to use the 1.5.8 as advised to achieve what I want (see the title of this subject)

I ran in to some minor trouble and things I cannot find out what to do

First

I want the text-frame to be very close to the text but I could not come close enough in the way I want it:
Text very close to the textframe-page001.jpg

What can I do?


The trouble I ran into
The function: "Adjust Frame Height to Text" - didn't do that:
¤PC2 (00979).jpg

And it seem that "the Vertical Alignment" is a little far from being exactly in the Vertically middle - just well on its way:
¤PC2 (00980).jpg

The Arrows Shapes - Are they moved away from here?
¤PC2 (00978).jpg




PatJr

long click on that tiny triangle

maybe Scribus just can't produce the exact results you want
I go back to converting it to outlines

T-buch

Quote from: PatJr on February 24, 2023, 03:53:07 PMmaybe Scribus just can't produce the exact results you want

Thats ok - But if it could do it - It would be nice to know how ;)

utnik

Quote from: T-buch on February 24, 2023, 04:02:54 PM
Quote from: PatJr on February 24, 2023, 03:53:07 PMmaybe Scribus just can't produce the exact results you want

Thats ok - But if it could do it - It would be nice to know how ;)

i'm not sure if it will be good enough – but you could try the different settings for the 'first line offset'. (scribus needs to know what part of a font should be centered. it looks as you're not interested in accents and descenders...)

utnik