File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -636,10 +636,10 @@ protected function makeSvgAvatar() {
636636 // Text
637637 $ text = new SVGText ( $ this ->getInitials (), '50% ' , '50% ' );
638638 $ text ->setFont ( new SVGFont ( $ this ->getFontName (), $ this ->findFontFile () ) );
639- $ text ->setSize ( $ this ->getFontSize () * $ this ->getWidth () );
640639 $ text ->setStyle ( 'line-height ' , 1 );
641640 $ text ->setAttribute ( 'dy ' , '.1em ' );
642641 $ text ->setAttribute ( 'fill ' , $ this ->getColor () );
642+ $ text ->setAttribute ('font-size ' , $ this ->getFontSize () * $ this ->getWidth ());
643643 $ text ->setAttribute ( 'text-anchor ' , 'middle ' );
644644 $ text ->setAttribute ( 'dominant-baseline ' , 'middle ' );
645645
@@ -738,4 +738,4 @@ protected function getFontByScript() {
738738
739739 return $ this ->getFontFile ();
740740 }
741- }
741+ }
You can’t perform that action at this time.
0 commit comments