fsmMLK / inkscapeDimensions

Inkscape extension to assist creating dimension annotations.
GNU General Public License v3.0
64 stars 10 forks source link

Arrow length #13

Closed hansu closed 2 years ago

hansu commented 3 years ago

How do you managed this that the horizontal line is always as long as your text? Or is that only possible if using Latex?

If I do that it looks like this:

Screenshot_2021-04-24_10-44-40 or Screenshot_2021-04-24_10-45-04

Maybe an option would be to right align the text as it is a common method I think:

Screenshot_2021-04-24_10-45-26

What do you think about that?

fsmMLK commented 3 years ago

Inkscape does not provide any way (that I am aware) of knowing where text elements end. Therefore I don't know how much I have to extend/cut the line below text. However I can do it with latex elements. =S

hansu commented 3 years ago

I mean to let the line length as it is, only adjust the text. I could imagine set the anchor point to the right and right align the text.

fsmMLK commented 3 years ago

yes, it is possible to do that, but the problem persists because you might still have a shorter (or longer) horizontal line segment under the text.

hansu commented 3 years ago

Yes the user has to adjust the line segment length that it has at least the text length. In this case i would think right align is the better choice. if the text is longer than the line segment, a left align would look better. As there are no configuration points in this tab yet, i think we can safely add an option to switch between right and left aligning.

fsmMLK commented 3 years ago

I might just found one very finicky way of getting length information from text elements. I will investigate it ASAP.

hansu commented 2 years ago

Unfortunately this removes the arrow for me:

Peek 2022-08-09 13-16