Thank you for your reply. I forgot to mention one very important thing: the commandline version is running on a Linux server, while the GUI version is on a windows machine. I cannot check the GUI on linux (it's a remote server in which i only have shell privileges), so i can only think about differences between window and linux font management system (font are the same in both machines).
Anyhow, i solved in a different way: as the main problem of SVG texts is their variable size, i simply rendered a temp SVG with the text into a PDF file, and then converted it in PNG using imagemagick. This way i was able to get from the PNG the size of text as rendered by inkscape, and this permitted me to create the final file with the correct aspect ratios.
It is good in any case to know you saw no discrepancy, this may be helpful in future, to me.
Again, thank you all for your help!
Alex
bulia byak wrote:
On 10/5/07, Alexander Bonivento <redna379@...12...> wrote:
inkscape -I "text_2_check" -W test.svg 419.81271 - 4.6645856666666666666666666666667 - 5.042
I did the same test with your file and see no discrepancy:
416.60156 4.62888888889 4.629
The only explanation I can suggest is that on your system, Inkscape can find some font when run with the GUI and cannot find it when run without GUI, and as a result this text string gets rendered in different fonts in these cases and thus gets different width. It's hard for me to debug this, however, because I cannot reproduce this.