diff options
author | Timothy Pearson <tpearson@raptorengineering.com> | 2016-06-29 13:19:29 -0500 |
---|---|---|
committer | Timothy Pearson <tpearson@raptorengineering.com> | 2016-06-29 13:19:29 -0500 |
commit | 187cfa5946f3c49ed80853a9c6890f30f4be873a (patch) | |
tree | a91dc2f5a3adda5cf02c91ea72b52c3c1d2be34f | |
parent | 551ab952471befef109c76177ebc0ffa76dbed5e (diff) | |
download | zetacomponents-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.php | 2 |
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() ); |