Long text chopped off

id:56
title:Long text chopped off
priority:1
status:active
created:2008-06-16 11:30:02
resolved:0000-00-00 00:00:00

This is due to gd's insistence on a known canvas size in advance. Obviously, the canvas should be larger.

Well. I made the canvas larger, but really there should be a Perl interface to freetype; this would allow the extent of a text to be determined in advance. Freetype could also do the rendering directly, eliminating gd from the loop and perhaps allowing a little more control over kerning and so forth.

Actually, it might make sense to stop using gd, and use ImageMagick to render text again. It does a prettier job, it just doesn't place it right in the SVG; but now that we've disengaged the text from SVG anyway, we don't really care, do we?

This could even be an optional specification or something. That could be interesting. And I still want to use Postscript sometime.






Copyright © 1996-2009 Vivtek. All Rights Reserved. Read the disclaimer.
Read our privacy statement, too, if you are concerned.
Problems? Try webmaster@vivtek.com or our answer page.