|
|
|
[
Permlink
| « Hide
]
Willie Alberty - 09/Aug/06 06:32 PM
I am working on some advanced layout classes that will take care of wrapping long lines for you. This code won't be ready for several more weeks. In the meantime, you may be able to use this function:
@Wille Alberty: Amazing, this is 100% what I have needed! Thank you very much!
Summary is changed to describe problem more clear.
Depends on other text formatting tasks (canvases, paragraphs and so on)
Assignee is changed to postpone issue to post-v1.0 period
This only partially alleviates the metrics required for word wrapping though. This may be neat, but the instance where it doesn't help, is where you have a long string, need to word-wrap it, but need to know at which width a line should be cut without cutting words.
PHP inherently offers us the wordwrap function, which allows us to cut a string into an array where lines don't exceed a certain width, taking word composition into consideration. It's useless in this case though, since a 'max width' is very variable when font glyphs are of variable sizes. Is there a function in Zend_PDF somewhat akin to the above, which allows us to determine a cut-strategy given:
Thanks. There is a new Zend_Font Component Proposal available for this:
http://framework.zend.com/wiki/display/ZFPROP/Zend_Font+-+Karol+Babioch I would love to see a little bit progress with Zend_Pdf. Unassigning Zend_Pdf issues currently assigned to me pending decision on ZF 2.0 release timeframe and potential contribution of comprehensive changeset.
Alex, could you please look at this issue and mark it 'postponed' if we won't be addressing it before 1.8. Note that it has several votes.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||