Hi,
I need to know the geometry of several words, so I write a litle php-prog to get all informations, and write it in a file. But the some returned heights could not be true, why?
I use folowing template for each word (%_?_% is replaced with valid parameters):
<?xml version="1.0" standalone="no"?> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg width="100%" height="100%" version="1.1" xmlns="http://www.w3.org/2000/svg">
<text style="font-size: %fontsize%;font-style:normal;font-weight:normal;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family: %fontname%" x="%x%" y="%y%" id="testWort">%text%</text>
</svg>
Then I save the generated svg to disc: svg_temp.svg. And quering witdth and height with:
inkscape svg_temp.svg --query-width --query-id testWort inkscape svg_temp.svg --query-height --query-id testWort
The returned values are saved in following file, which shows %text% :: %fontname% :: %fontsize% :: WIDTH :: HEIGHT
bis 180m::URW Palladio L::48::189.29175::69.696 bis 915m::URW Palladio L::48::189.29175::52.224 bis 2745m::URW Palladio L::48::213.29175::51.072
So, why is 'bis 180m' 69.696pt tall, where 'bis 915m' and 'bis 2745m' are both about 51pt?
Same strange behaviour also occurs with other words. E.g.:
Gerastos::URW Palladio L::72::310.86675::91.368 Aulis::URW Palladio L::72::187.33612::62.784 Theben::URW Palladio L::72::241.34963::60.696
Thanks for help
Lorenz