Removed badge around center text
This commit is contained in:
parent
e3f3101719
commit
5e07f24023
1 changed files with 1 additions and 1 deletions
|
|
@ -177,7 +177,7 @@ final class QrCode
|
|||
$x = ($fullSize - $badgeWidth) / 2;
|
||||
$y = ($fullSize - $badgeHeight) / 2;
|
||||
$fontSize = min(3.2, max(2.1, ($badgeWidth - 2) / ($chars * 0.62)));
|
||||
$svg .= '<rect x="' . $x . '" y="' . $y . '" width="' . $badgeWidth . '" height="' . $badgeHeight . '" rx="' . ($badgeHeight / 2) . '" fill="#fff" stroke="#111" stroke-width="0.45"/>';
|
||||
$svg .= '<rect x="' . $x . '" y="' . $y . '" width="' . $badgeWidth . '" height="' . $badgeHeight . '" rx="' . ($badgeHeight / 2) . '" fill="#fff"/>';
|
||||
$svg .= '<text x="' . ($fullSize / 2) . '" y="' . ($fullSize / 2) . '" fill="#111" font-family="system-ui, -apple-system, Segoe UI, sans-serif" font-size="' . $fontSize . '" font-weight="800" text-anchor="middle" dominant-baseline="central">' . $safeText . '</text>';
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue