Skip to content

Commit

Permalink
apply style
Browse files Browse the repository at this point in the history
  • Loading branch information
2amjsouza committed Oct 17, 2023
1 parent beea74b commit b12eaaf
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Writer/SvgWriter.php
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,10 @@ protected function addLabel($svg, $qrCode)
$svg->attributes()->viewBox = sprintf("0 0 %s %s", $qrCodeOriginalWidth, $qrCodeOriginalHeight + $blockSize);
$svg->rect->attributes()->height = $qrCodeOriginalHeight + $blockSize;

$labelFontPath = 'data:application/x-font-otf;charset=utf-8;base64,' . base64_encode(file_get_contents($label->getFont()));
$labelFontPath = 'data:application/x-font-otf;charset=utf-8;base64,'
. base64_encode(
file_get_contents($label->getFont())
);
$svg->addChild(
'style',
<<<CSS
Expand Down

0 comments on commit b12eaaf

Please sign in to comment.