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() {
636
636
// Text
637
637
$ text = new SVGText ( $ this ->getInitials (), '50% ' , '50% ' );
638
638
$ text ->setFont ( new SVGFont ( $ this ->getFontName (), $ this ->findFontFile () ) );
639
- $ text ->setSize ( $ this ->getFontSize () * $ this ->getWidth () );
640
639
$ text ->setStyle ( 'line-height ' , 1 );
641
640
$ text ->setAttribute ( 'dy ' , '.1em ' );
642
641
$ text ->setAttribute ( 'fill ' , $ this ->getColor () );
642
+ $ text ->setAttribute ('font-size ' , $ this ->getFontSize () * $ this ->getWidth ());
643
643
$ text ->setAttribute ( 'text-anchor ' , 'middle ' );
644
644
$ text ->setAttribute ( 'dominant-baseline ' , 'middle ' );
645
645
@@ -738,4 +738,4 @@ protected function getFontByScript() {
738
738
739
739
return $ this ->getFontFile ();
740
740
}
741
- }
741
+ }
You can’t perform that action at this time.
0 commit comments