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.
I've been loosely following this thread this week but have been
unable to properly respond as I am working under deadline. But I
wanted to mention that I am finally continuing the work I started
last year with the revised font code and am working again on the
comprehensive layout classes for Zend_Pdf. My new code won't be
completed for a couple of months, but I imagine there will be some
overlap with what you are doing here. Once you have your code
working, I'd love to take a look at it to see where we could
collaborate.
A few questions:
1. Are you going to be using xsl-fo for your layout model?
2. Does your revised font code involve support for unicode and/or non
Latin-1 fonts?