Inkscape.org
Beyond the Basics Attach text to line with arrowhead with the arrowhead attached to a point on an object, so that the line/arrowhead autom
  1. #1
    PMR0001 PMR0001 @PMR0001

    Hello, I wish to create text which is connected to a line with an arrowhead, which itself points to a point on an object, such that when I move the text on the page, the line and arrowhead also move and resize accordingly with the arrowhead attached to the point on the object.  For example, say I have a map, which is an object.  I wish to create some text pointing to a cafe on that map with an arrow, but then realise I need to reposition the text.  I don't want to then have to redraw the line and arrowhead, but rather that the arrow remains attached to the same point on the map, and the line resizes and the arrowhead turns automatically as I move the text.  Is this possible and if so, how?  Thanks. 

  2. #2
    Harry Martin Harry Martin @Harry_Martin
    *

    Good question.

    I could be terribly wrong, but that sounds like a job for LibreOffice Draw. I just created the same effect using Draw. I can move a text box around with text, with an arrow anchored to a map point. I can add more text, and the text auto resizes. I can add multiple text objects and have them all point to the same spot on a map and it redraws the lines automatically. I didn't try to put it on a curve yet, but the point is, it's ridiculously easy going this route. I placed the world map on the bottom layer and changes are so bloody easy.

    However, I will be following this thread as it sounds like an interesting and different way to use Inkscape objects if it can be done.

    EDIT: You can insert sexy curves that automatically adjust as well. 

     

    Screenshot From 2025 08 25 11 12 34
  3. #3
    Paddy_CAD Paddy_CAD @Paddy_CAD
    *

    Here it is. Move the text. Type something else. Change the font. Move the circle. Rotate the circle. 

    The rectangle has two path effects, bounding box linked to the text and offset to apply a margin. The line is a connector attached the the text to the rectangle and the dot. The larger circle and the dot are grouped together. 

  4. #4
    Harry Martin Harry Martin @Harry_Martin

    Thanks @Paddy_CAD I just learned something!

  5. #5
    PMR0001 PMR0001 @PMR0001

    Thanks Harry and Paddy for your replies.  Very helpful and much appreciated.

  6. #6
    David248 David248 @David248

    For an unknown reason, connectors don't attach to texts : a quick workaround is to group the text. 

  7. #7
    PMR0001 PMR0001 @PMR0001

    David - I discovered that the default in Edit>Preferences>Tools>Connector Tool is set to 'Don't attach connectors to text objects'.  This can be disabled so that you can connect to text objects.  The problem then, however, seems to be that the connector line goes to the handle which is in the middle of the text, so not very pretty!.  Putting the text in its separate box and grouping as you say seems the better option anyway.

  8. #8
    David248 David248 @David248

    You're right. Thanks for these informations.

Inkscape Inkscape.org Inkscape Forum Beyond the Basics Attach text to line with arrowhead with the arrowhead attached to a point on an object, so that the line/arrowhead autom