[magick-users] Locating end of a text (perl magick)

Benoit VARVENNE varvenne at genoway.com
Wed Dec 3 05:37:18 PST 2008


Hello

Thanks a lot for your answers. I use QueryFontMetrics function, as
recommended, but I still have a problem.

If I insert a new element at position : $x(text beginning
coordinate)+$width(of the text), the new element overlaps the text.

Does someone know if there is any reason why "x+width" is not the end of the
string ?

Thanks
Regards
Benoît


> $image->QueryFontMetrics(params);
> The function returns
> 0 character width
> 1 character height
> 2 ascender
> 3 descender
> 4 text width
> 5 text height
> 6 maximum horizontal advance
> 7 bounding box: x1
> 8 bounding box: y1
> 9 bounding box: x2
> 10 bounding box: y2
> 11 origin: x
> 12 origin: y




More information about the Magick-users mailing list