FAQ
Edit report at https://pear.php.net/bugs/bug.php?id=16948&edit=1

ID: 16948
Updated by: daniel.oconnor@gmail.com
Reported By: pear dot neufeind at speedpartner dot de
Summary: Check if multiline-text working fine across
output-drivers
Status: Open
Type: Bug
Package: Image_Canvas
Package Version: CVS
PHP Version: Irrelevant
Roadmap Versions:
New Comment:

Bug #18507


Previous Comments:
------------------------------------------------------------------------

[2009-12-26 20:20:30] neufeind

Description:
------------
GD and SVG should work (need to re-check).

For others like e.g. PDF we need to check if multiline-text (breaking
text with \n) currently works at all. If it does (newlines handled by
pdf-library) at least the functions textHeight() (and if vertical text
is allowed in that driver also textWidth) need adjustment, e.g. like

function textWidth($text)
{
return $this->_font['size'] * count(explode("\n",$text));
}

( Thanks go to bug-report #16833: patch for newlines in SVG addText() )

------------------------------------------------------------------------

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
categoriesphp
postedJan 2, '12 at 12:45a
activeJan 2, '12 at 12:45a
posts1
users1
websitepear.php.net

1 user in discussion

Daniel Oconnor: 1 post

People

Translate

site design / logo © 2022 Grokbase