So I have a centered text box 'Some text' at coordinates X 6.0 Y 3.0. If I edit it inline e.g. 'Some text1' the X and Y coordinates don't change.much X 5.8 Y 3.0
But if I edit the text in 'text and font', text and hit apply the whole text jumps right a huge distance to X 9.8 Y 3.0 and I see it is now left justified. If I change the text box back to centered it doesn't move it back.
Sorry, I can't reproduce the problem. When I click [Apply], the updated text remains centre-justified and the text anchor doesn't move. Can you upload a misbehaving file for investigation?
I've hopefully provided a simple example file. Try editing 'Text line 2' to e.g. 'Text line 22' and see how the text box jumps to the right after hitting apply.
I have in part replicated your experience. The problem seems to be related to the diamond anchor point being moved some distance to the right of the text.
Re-aligning the text to align-right will cause it to jump to the right and then align-center will not return to its original position. You can see some of my experimenting in the attached text_issue_edited.svg.
I must admit I have no idea how this happened and how to fix it. I compared two svg files (the original and a corrected one after the right shift) and they are very similar.
Here is the first with a style applied to a tspan element
This is part of a jig template so I would ideally like to know how to fix this without every element being translated (there are 32 text boxes). I guess they will all translate the same distance so if I get one right the rest will be ok since I can move them as a block.
NB I tried cloning a text object so they were coincident, editing the text of one object, apply and then applying a transform of x="-98.275681" and y="2.0065973" px and it looks close but not an exact match to the unmoved object. I assume measurements in the svg are in px unless otherwise specified
So I have a centered text box 'Some text' at coordinates X 6.0 Y 3.0. If I edit it inline e.g. 'Some text1' the X and Y coordinates don't change.much X 5.8 Y 3.0
But if I edit the text in 'text and font', text and hit apply the whole text jumps right a huge distance to X 9.8 Y 3.0 and I see it is now left justified. If I change the text box back to centered it doesn't move it back.
What am I doing wrong / how to fix?
Thanks
Sorry, I can't reproduce the problem. When I click [Apply], the updated text remains centre-justified and the text anchor doesn't move. Can you upload a misbehaving file for investigation?
I've hopefully provided a simple example file. Try editing 'Text line 2' to e.g. 'Text line 22' and see how the text box jumps to the right after hitting apply.
I am using Inkscape v1.4 on Windows 11.
Thanks
I have in part replicated your experience. The problem seems to be related to the diamond anchor point being moved some distance to the right of the text.
Re-aligning the text to align-right will cause it to jump to the right and then align-center will not return to its original position. You can see some of my experimenting in the attached text_issue_edited.svg.
I must admit I have no idea how this happened and how to fix it. I compared two svg files (the original and a corrected one after the right shift) and they are very similar.
Here is the first with a style applied to a tspan element
And after the edit text, apply, the tspan element is simplified:
This is part of a jig template so I would ideally like to know how to fix this without every element being translated (there are 32 text boxes). I guess they will all translate the same distance so if I get one right the rest will be ok since I can move them as a block.
NB I tried cloning a text object so they were coincident, editing the text of one object, apply and then applying a transform of x="-98.275681" and y="2.0065973" px and it looks close but not an exact match to the unmoved object. I assume measurements in the svg are in px unless otherwise specified
Thanks