|
@@ 748-753 (lines=6) @@
|
| 745 |
|
$x = 0; |
| 746 |
|
if (!$spacing && $wordSpacing) { |
| 747 |
|
$bits = explode(' ', $theText); |
| 748 |
|
foreach ($bits as $word) { |
| 749 |
|
$word .= ' '; |
| 750 |
|
$wordInf = $this->ImageTTFBBoxWrapper($conf['fontSize'], $conf['angle'], $conf['fontFile'], $word, $conf['splitRendering.'], $sF); |
| 751 |
|
$wordW = $wordInf[2] - $wordInf[0]; |
| 752 |
|
$x += $wordW + $wordSpacing; |
| 753 |
|
} |
| 754 |
|
} else { |
| 755 |
|
$utf8Chars = $this->csConvObj->utf8_to_numberarray($theText); |
| 756 |
|
// For each UTF-8 char, do: |
|
@@ 757-761 (lines=5) @@
|
| 754 |
|
} else { |
| 755 |
|
$utf8Chars = $this->csConvObj->utf8_to_numberarray($theText); |
| 756 |
|
// For each UTF-8 char, do: |
| 757 |
|
foreach ($utf8Chars as $char) { |
| 758 |
|
$charInf = $this->ImageTTFBBoxWrapper($conf['fontSize'], $conf['angle'], $conf['fontFile'], $char, $conf['splitRendering.'], $sF); |
| 759 |
|
$charW = $charInf[2] - $charInf[0]; |
| 760 |
|
$x += $charW + ($char === ' ' ? $wordSpacing : $spacing); |
| 761 |
|
} |
| 762 |
|
} |
| 763 |
|
} elseif (isset($conf['breakWidth']) && $conf['breakWidth'] && $this->getRenderedTextWidth($conf['text'], $conf) > $conf['breakWidth']) { |
| 764 |
|
$maxWidth = 0; |