:octocat: that makes more sense

This commit is contained in:
codemasher
2019-06-22 16:44:13 +02:00
parent d7afadff90
commit f33c615ae9
+1 -1
View File
@@ -88,7 +88,7 @@ class QRImageWithText extends QRImage{
$fontColor = \imagecolorallocate($this->image, ...$textColor);
$w = \imagefontwidth($textSize);
$x = ($bgWidth - round((strlen($text) * $w))) / 2;
$x = round(($bgWidth - strlen($text) * $w) / 2);
// loop through the string and draw the letters
foreach(str_split($text) as $i => $chr){