
Do you have another suggestion on how I can get map labels imported
into Inkscape?
For single line map labels, I would center the text, so that changing the size doesn't change the position, eg: .ctext { text-anchor: middle; text-align: center; alignment-baseline: middle; }
<text x=50 y=50 class="ctext">The text</text>
For multi-line labels, I would split the text into tspan's, eg:
.multiline tspan { text-anchor: middle; text-align: center; alignment-baseline: middle; }
<text x=50 y=50 class="multiline"> <tspan dy="-1.2em" x=50>Hello</tspan> <tspan dy="1.2em" x=50>World!</tspan> <tspan dy="1.2em" x=50>Line 3.</tspan> </text>
Where everything will be centered on x=50, y=50, and the line_height is 1.2em. The dy's should be: 1. first dy: - ( line_height * (num_lines - 1) / 2.0 ) 2. all other dy's: line_height
Hopefully this helps, - Alex