Revert "Work-around for SVG rendering issues on Mac/Android"
authorAlexander Ebert <ebert@woltlab.com>
Fri, 1 Sep 2017 10:20:22 +0000 (12:20 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Fri, 1 Sep 2017 10:20:22 +0000 (12:20 +0200)
This reverts commit 493e3e106d539c0c93a86c1e79e3eac67acb4bb0.

wcfsetup/install/files/lib/data/user/avatar/DefaultAvatar.class.php

index 0ee9381170d5f031760400ea023fcfbfdd0f0fc1..ded97a0cc96c1f284df248ef52068be6efb18a00 100644 (file)
@@ -56,7 +56,7 @@ class DefaultAvatar implements IUserAvatar {
                        
                        // the <path> is basically a shorter version of a <rect>
                        $svg = <<<SVG
-<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16"><path fill="#{$backgroundColor}" d="M0 0h16v16H0z"/><text x="8" y="8" fill="#{$textColor}" text-anchor="middle" baseline-shift="-50%" dominant-baseline="ideographic" font-family="Arial" font-size="7">{$text}</text></svg>
+<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16"><path fill="#{$backgroundColor}" d="M0 0h16v16H0z"/><text x="8" y="8" fill="#{$textColor}" text-anchor="middle" dominant-baseline="central" font-family="Arial" font-size="7">{$text}</text></svg>
 SVG;
                        
                        $this->src = "data:image/svg+xml;base64," . base64_encode($svg);