QCAD - 2D CAD System.
Please search for existing tasks (also closed ones) before opening a new task.
Please make sure that you are using the latest Version of QCAD before posting a bug (menu Help - Check for Updates)
FS#191 - SVG PG export text vertical and horizontal alignment
Opened by Peter (hungerburg) - Friday, 26 August 2011, 14:30 GMT+1
Last edited by Andrew (andrew) - Tuesday, 13 September 2011, 14:26 GMT+1
QCAD offers horizontal and vertical alignment choices for text. This is not carried over to PG exported SVGs. Currently QCAD sets the “dy” attribute on text nodes in a way, such that any text in SVG will look like the QCAD vertical alignment was set to “Top” and the horizontal one to “Left”.
Naively one can just omit the “dy” attribute and in SVG this will look like the QCAD vertical alignment was set to “bottom”. At least for single line texts that should be good.
The horizontal alignments can be recreated in SVG with the “text-anchor” attribute for text nodes. The values “start”, “middle” and “end” correspond to the QCAD “left”, “center” and “right” choices.
Tuesday, 13 September 2011, 14:26 GMT+1
Reason for closing: Fixed
Additional comments about closing: r18996