[Lazarus] FPVectorial and TAChart
Felipe Monteiro de Carvalho
felipemonteiro.carvalho at gmail.com
Fri Apr 22 14:25:15 CEST 2011
On Wed, Apr 20, 2011 at 7:15 AM, Alexander Klenin <klenin at 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
More information about the Lazarus
mailing list