how to get text width in pt from command line using -query
I have a svg file that have a text line like in bellow svg example.
I need to change in that svg line text with other and that text need to be horizontally centered.
For example I have original svg like:
<svg width="480pt" height="250pt" viewBox="0 0 480 250" version="1.1" xmlns="http://
<text style="
</svg>
Using php I will edit svg changing text value. After that I will use inkscape command line (linux) to get x, y, width of that line text. I get that width and I do a simple math: x = (480-text_with)/2
I will use x value to replace matrix from matrix(
Because query return results in px, when I create a png from new svg (command line) text actually is not centered.
It's possible -query to return data (x,y,width,height) in pt?
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- Inkscape Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Ciprian for more information if necessary.