On Wed, Apr 20, 2011 at 7:15 AM, Alexander Klenin <kle...@gmail.com> wrote: > 2) How to measure a text?
I have done some research and it seams that in SVG this can only be done by using JavaScript inserted inside the image: http://stackoverflow.com/questions/3001950/how-can-i-draw-a-box-around-text-with-svg But that's a gross abuse .. something that one can only hope to get working in web browsers and in fact Inkscapte doesn't support Javascript inside SVG images ... I think that the best that one could do is guessing. Take a look at the width each letter uses for example in Arial, then see which font is likely to get used in Linux if you feed Arial to the font chooser, the same for Mac, and then try to build a guess function based on empiric data. -- Felipe Monteiro de Carvalho -- _______________________________________________ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus