On Nov 10, 2007, at 1:35 PM, Willie Alberty wrote:
On Nov 10, 2007, at 12:00 PM, Rick Gigger wrote:
I completed the first step towards getting my rich text code
working with Zend_Pdf. I imported Zend_Pdf into my framework and
got it working there. Now I just need to create an adapter for it
and clean up the rich text code so it is a little more
presentable. One issue I am seeing is that I can't find an API for
measuring text. I can't imagine it not having one, but before I
proceed with Zend_Pdf it would be nice to know that one exists.
There currently is no API for measuring text. If necessary, you can
convert your string to glyphs and obtain the glyph widths yourself.
There is a function in http://framework.zend.com/issues/browse/
ZF-313 that you can use for this purpose.
Just curious, if that function works correctly why has such a basic
function as text measuring not been included in Zend_Pdf if the work
has already been done.