We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5300a2b + 0e6ee58 commit 1d2d736Copy full SHA for 1d2d736
src/InitialAvatar.php
@@ -636,10 +636,10 @@ protected function makeSvgAvatar() {
636
// Text
637
$text = new SVGText( $this->getInitials(), '50%', '50%' );
638
$text->setFont( new SVGFont( $this->getFontName(), $this->findFontFile() ) );
639
- $text->setSize( $this->getFontSize() * $this->getWidth() );
640
$text->setStyle( 'line-height', 1 );
641
$text->setAttribute( 'dy', '.1em' );
642
$text->setAttribute( 'fill', $this->getColor() );
+ $text->setAttribute('font-size', $this->getFontSize() * $this->getWidth());
643
$text->setAttribute( 'text-anchor', 'middle' );
644
$text->setAttribute( 'dominant-baseline', 'middle' );
645
@@ -738,4 +738,4 @@ protected function getFontByScript() {
738
739
return $this->getFontFile();
740
}
741
-}
+}
0 commit comments