summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimothy Pearson <tpearson@raptorengineering.com>2016-06-29 13:19:29 -0500
committerTimothy Pearson <tpearson@raptorengineering.com>2016-06-29 13:19:29 -0500
commit187cfa5946f3c49ed80853a9c6890f30f4be873a (patch)
treea91dc2f5a3adda5cf02c91ea72b52c3c1d2be34f
parent551ab952471befef109c76177ebc0ffa76dbed5e (diff)
downloadzetacomponents-graph-187cfa5946f3c49ed80853a9c6890f30f4be873a.zip
zetacomponents-graph-187cfa5946f3c49ed80853a9c6890f30f4be873a.tar.gz
Interpret labels as UTF-8 in testFitStringInTextBoxfix-utf8-graph-labels
This fixes labels not showing up when certain characters, e.g. "à", were used in those labels. Signed-off-by: Timothy Pearson <tpearson@raptorengineering.com>
-rw-r--r--src/interfaces/driver.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/interfaces/driver.php b/src/interfaces/driver.php
index 18512a4..34ca1de 100644
--- a/src/interfaces/driver.php
+++ b/src/interfaces/driver.php
@@ -503,7 +503,7 @@ abstract class ezcGraphDriver
protected function testFitStringInTextBox( $string, ezcGraphCoordinate $position, $width, $height, $size )
{
// Tokenize String
- $tokens = preg_split( '/\s+/', $string );
+ $tokens = preg_split( '/\s+/u', $string );
$initialHeight = $height;
$lines = array( array() );
OpenPOWER on IntegriCloud