When text is centered, anchor should be centered too

Bug #168329 reported by Maxberger
24
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Inkscape
Fix Released
Wishlist
Diederik van Lierop

Bug Description

Dear Developers,

When trying to center a text using a restrictive grid, I currently have
to:

- edit the text
- move the anchor to the position i want it
- then select "centered" in the layout box.

and when i want to move the text, i have to do the same thing again,
because the anchor stays at the bottom left.

Instead, it would be nice if the anchor would actually be in the middle on
centered layout (and on the right in right layout).

Thanks

Version:
0.45 final

Related branches

Revision history for this message
Daniel Pope (djpope) wrote :

Originator: NO

The anchor does reflect how the text is positioned, but it does not itself
snap to the grid. Only the bounding box snaps to the grid, which is why you
can't snap a centred anchor to the grid.

I agree that it should be made possible for text anchors to snap to the
grid.

Revision history for this message
vonHalenbach (lustik) wrote :

Could you put your wish into a drawing, so that it would be easier for the developers to see, how exactly you want it to be implemented. I can't really follow your descriptions. You know, a picture is worth a thousand words :-)

Changed in inkscape:
importance: Medium → Wishlist
status: New → Incomplete
Revision history for this message
Max Berger (max-berger) wrote :
Revision history for this message
Max Berger (max-berger) wrote :

Here you can see that the alignment where the alignment point should be (when the text is centered)- although the text is centered, i cannot snap its center to the grid (it is one pixel to the left of where it should be)

hope this makes more sense

Max

Revision history for this message
vonHalenbach (lustik) wrote :

Yeah, thank you! Now i can see it. I have switched the status to triaged, so that a developer can pick this up and put it into the source.

Changed in inkscape:
status: Incomplete → Triaged
Revision history for this message
Mercury (mercury13) wrote :

+1.
I made some sort of table with IS. Well, I found a way to circumvent, but PLEASE DO...

Revision history for this message
Mercury (mercury13) wrote :

In 0.46 it's still missing.

Revision history for this message
Dario Teixeira (darioteixeira) wrote :

I second this report. This bug is so annoying I can't believe it lasted this long in Inkscape. It forces me to go back to Xfig to draw some diagrams just because that programme handles this issue correctly.

Revision history for this message
Jelle Haandrikman (jhaand) wrote :

I've been using Inkscape to create mechanical diagrams for about half a year at work. I like Inkscape for the ease of use and a lot of the features to create diagrams.
Before I used XFig but it's really showing it's age.

I agree with the previous post. XFig had this behaviour nailed down correctly. When you change the alignement of the text, the aligned text moves around the anchor. So when multiple text blocks are re-aligned, you can move than all together.

Not the current behavior that you have to reposition the text after editing it.

Even worse. If you want to position several fields with right alignment, you have to activate Snap -> "Bounding box corners" Then move the box(es) and deactivate the Snap, Bounding box corners. Otherwise, I can't position my

The current state costs me a lot of extra work and adds frustration.

Could someone please pick this up?

su_v (suv-lp)
tags: added: snapping text
removed: other
Changed in inkscape:
assignee: nobody → Diederik van Lierop (mail-diedenrezi)
status: Triaged → Fix Committed
su_v (suv-lp)
Changed in inkscape:
milestone: none → 0.48
status: Fix Committed → Fix Released
Revision history for this message
LucaDC (lucadc) wrote :

I've noticed that the text anchor is not aligned to the center of the text: if you drag a vertical guide you get two (usually slightly) different snapping positions for object rotation center and text baseline.
The amount of error depends on what the text is: try with "Ciao " (note the space at the end).

Revision history for this message
Diederik van Lierop (mail-diedenrezi) wrote :

Yes, you're right about this. I've noticed that the start and endpoints do not necessarily coincide with the bounding box. Therefore its midpoint does not align with the center of the object either. Try changing some text to italics. This will change the bounding box, but it will not change the baseline.

The bounding box is as it is, we cannot change that obviously. The baseline is defined by the font I believe, so that's probably out of our control too. So I guess this alignment error cannot be solved.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.