mirror of
https://github.com/chillerlan/php-qrcode.git
synced 2026-09-02 21:47:22 +00:00
:octocat: that makes more sense
This commit is contained in:
@@ -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){
|
||||
|
||||
Reference in New Issue
Block a user