Jump to content
You must now use your email address to sign in [click for more info] ×

Cannot center text in text frame


Recommended Posts

I've created a grid of text frames.  I want to be able to center the text within each frame, but it is a little too far to the right.  I cannot figure out why.  There appears to be a left indent of some sort but I can't figure out where.  I've attached the file.  Any help would be so appreciated!

 

image.png

text alignment.afpub

Link to comment
Share on other sites

45 minutes ago, Quadma said:

I want to be able to center the text within each frame, but it is a little too far to the right. 

If you want to align each of them to the center, choose Center Align for each of them, either from the Contextual Toolbar or the menu item Text > Alignment options.

All 3 1.10.8, & all 3 V2.4.2 Mac apps; 2020 iMac 27"; 3.8GHz i7, Radeon Pro 5700, 32GB RAM; macOS 10.15.7
Affinity Photo 
1.10.8; Affinity Designer 1.108; & all 3 V2 apps for iPad; 6th Generation iPad 32 GB; Apple Pencil; iPadOS 15.7

Link to comment
Share on other sites

Thanks so

1 hour ago, R C-R said:

If you want to align each of them to the center, choose Center Align for each of them, either from the Contextual Toolbar or the menu item Text > Alignment options.

Thanks so much for your reply, RC-R.  I do know how to use Text>Alignment.   My difficulty is that when I choose Center alignment, it's not actually centered, but shifted a bit to the right.  I included the Left Justified and Right Justified examples to show that the entire text box seems to be indented a bit to the right.  When I Right justify, the text is flush against the right side of the box, but when I Left Justify, it is slightly indented.  This is carrying over to the the Center Justified-it's not actually in the center, but shifted to the right.  I'm hoping someone can help me figure out why.

Link to comment
Share on other sites

Look in the Paragraph panel in the Spacing section

You will see the Left Indent and First Line Indent settings are non-zero

With the text frame selected, change both to zero and it will fix the "problem"

To save time I am currently using an automated AI to reply to some posts on this forum. If any of "my" posts are wrong or appear to be total b*ll*cks they are the ones generated by the AI. If correct they were probably mine. I apologise for any mistakes made by my AI - I'm sure it will improve with time.

Link to comment
Share on other sites

7 minutes ago, thomaso said:

There is confusion in the style definition, respectively the Affinity UI: Though the Paragraph Panel says 0 there are two indents set. Reset them to zero again.

1446742396_indentsissue.thumb.jpg.18b7209873522b478af42ea6b199075d.jpg

725969672_indentsissuefixed.jpg.018f6e567ee0d8bba0dcb5c94930f755.jpg

Thanks, thomaso-2 questions

1) could you clarify how to reset the indents?  I've never done that before and am not finding the information readily when I search for it.

2) where is the Style settings box that you picture?.  It certainly looks like helpful information.

Link to comment
Share on other sites

13 minutes ago, thomaso said:

Though the Paragraph Panel says 0 there are two indents set

 

Strange, on Windows, you can see the values

 

 

center.png

To save time I am currently using an automated AI to reply to some posts on this forum. If any of "my" posts are wrong or appear to be total b*ll*cks they are the ones generated by the AI. If correct they were probably mine. I apologise for any mistakes made by my AI - I'm sure it will improve with time.

Link to comment
Share on other sites

3 minutes ago, carl123 said:

 

Strange, on Windows, you can see the values

 

 

center.png

I should have just switched to my Windows machine! THAT I know what to do with!

Hopefully thomaso does reply to clarify how I can reset it on my Mac, because it would be good to know how to do that.

Link to comment
Share on other sites

1 minute ago, Quadma said:

Hopefully thomaso does reply to clarify how I can reset it on my Mac

I'm sure he will but in the meantime try changing the vales you see to something else then back to zeros

Does that cure it?

To save time I am currently using an automated AI to reply to some posts on this forum. If any of "my" posts are wrong or appear to be total b*ll*cks they are the ones generated by the AI. If correct they were probably mine. I apologise for any mistakes made by my AI - I'm sure it will improve with time.

Link to comment
Share on other sites

20 minutes ago, Quadma said:

1) could you clarify how to reset the indents?  I've never done that before and am not finding the information readily when I search for it.

Click on the down arrow for the left indent, this will make the first line indent (the field below) jump to 0.23 in, then set this to 0 again.

2028448912_indentsissue2.jpg.9ac41cc96db151a71a56c9b5a8a1c26a.jpg

20 minutes ago, Quadma said:

2) where is the Style settings box that you picture?.  It certainly looks like helpful information.

Place the text cursor into a text frame (regardless which position). Then click in the Text Style Panel at the bottom the + symbol to create a new style. This will open the Edit Text Style window with all parameters of the style at your text cursor position. At its bottom it gives the summary. Another, same, summary is at the top of the Text Stels panel, but that is even more cumbersome – none of the two fields can adjusted in their height. But can select all contents and copy / paste it into a text frame on your page for better overview.

17 minutes ago, carl123 said:

Strange, on Windows, you can see the values

Aside the fact that both are empty to me on mac, the values appearing on click are different to the style definition summary, too. (but show correct in your screenshot).

This feels like a bug – but possibly hard to reproduce. @Quadma, do you remember and can tell how you styled these text frames, what steps first and tried with indent set anywhere, for instance via the text ruler? Or was the text imported or pasted from another source?

Edited by thomaso
added info about style summaries

macOS 10.14.6 | MacBookPro Retina 15" | Eizo 27" | Affinity V1

Link to comment
Share on other sites

5 minutes ago, carl123 said:

I'm sure he will but in the meantime try changing the vales you see to something else then back to zeros

Does that cure it?

Yes! That did it! I had to do it in two steps. I had to change Yes! That did it! I had to do it in two steps though. I changed both the left indent in the first line indent to new, nonzero numbers and then I changed them both back to zero, starting with the left indent first.  For some reason, that fixed one of the lines but not both. So then I repeated the same process but I changed the first line indent to zero first and then both lines were where I wanted them. 

Link to comment
Share on other sites

26 minutes ago, Quadma said:

For some reason, that fixed one of the lines but not both. So then I repeated the same process but I changed the first line indent to zero first and then both lines were where I wanted them. 

In this case that all lines of text / all frames are affected by the indent error you can easily select all text frames with the Move Tool. That will apply the change to all frames and text instances. (as shown in my second screenshot above)

macOS 10.14.6 | MacBookPro Retina 15" | Eizo 27" | Affinity V1

Link to comment
Share on other sites

5 minutes ago, thomaso said:

Click on the down arrow for the left indent, this will make the first line indent (the field below) jump to 0.23 in, then set this to 0 again.

2028448912_indentsissue2.jpg.9ac41cc96db151a71a56c9b5a8a1c26a.jpg

Place the text cursor into a text frame (regardless which position). Then click in the Text Style Panel at the bottom the + symbol to create a new style. This will open the Edit Text Style window with all parameters of the style at your text cursor position.

Aside the fact that both are empty to me on mac, the values appearing on click are different to the style definition summary, too. (but show correct in your screenshot).

This feels like a bug – but possibly hard to reproduce. @Quadma, do you remember and can tell how you styled these text frames, what steps first and tried with indent set anywhere, for instance via the text ruler? Or was the text imported or pasted from another source?

Thanks!  The only thing I recall doing when I set up the text boxes was setting the text size, and center/middle of justifying the text. It’s possible that I did something else, but I don’t recall doing so. I did however change indents on a numbered list elsewhere in the document that this came from. I had actually saved that particular style, but when I set up this text box, I was careful to make sure that it said no style. But perhaps some of the indenting I set up elsewhere somehow carried through…?

Link to comment
Share on other sites

22 minutes ago, Quadma said:

I had actually saved that particular style, but when I set up this text box, I was careful to make sure that it said no style. But perhaps some of the indenting I set up elsewhere somehow carried through…?

Yes. Usually the style of the last set object gets applied to a following, newly created object, too. It's a feature to speed up the workflow.*

You can interrupt / avoid this by clicking the "Revert Defaults" button in the Toolbar after creating a new object. 1100729779_defaultsrevertbutton.jpg.5318e650ee6fafae59dc9deb1828f6f3.jpg

If you edit a text formatting which is set already to No Style than clicking No Style again doesn't help to reset any change. Instead try clicking another style and back to No Style or click the tiny T in a circle icon in the upper right corner of the Text Style panel.

* but its not a feature that this indent doesn't occur in the Paragraph Panel.

macOS 10.14.6 | MacBookPro Retina 15" | Eizo 27" | Affinity V1

Link to comment
Share on other sites

  • Staff

Hi @Quadma,

Thanks for your file provided! I'm glad to hear you've been able to resolve this issue, but there certainly seems to be a UI bug on Mac with this file - as I too am seeing 0 values on macOS and the correct values on Windows, so I'm logging this directly with our development team now.

I hope this helps :)

Link to comment
Share on other sites

  • 2 months later...
  • Staff

@Quadma, Our developers are currently investigating this issue further and they have confirmed that these Indent values shouldn't allow for negative values - which is why Windows and Mac are displaying this differently, as they are unexpected values.

However we've thus far been unable to determine how negative values are used in these text frames, as we cannot replicate this in a new document.

Can you please confirm for me, was this document imported from another format, into Affinity? Or do you recall how these text frames were created?

Many thanks in advance for any information you can provide :)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.