summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2018-02-19 22:12:05 +0100
committerGitHub <noreply@github.com>2018-02-19 22:12:05 +0100
commit26a741fd362444b2684321322b38219d4b36f104 (patch)
treefaa7e666da2a553c241fdc6741dca45fa0c92b12 /lib
parent7ad1e13961eb48d3cf61c77faddfc6507f77e6ee (diff)
parent0f57bce06c03b1e2d59c23ce6b9216ec5b84c5a5 (diff)
downloadnextcloud-server-26a741fd362444b2684321322b38219d4b36f104.tar.gz
nextcloud-server-26a741fd362444b2684321322b38219d4b36f104.zip
Merge pull request #8428 from nextcloud/fix_8189
Use TTF fonts for avatar generation
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Avatar.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Avatar.php b/lib/private/Avatar.php
index 4cacc801689..352fcf05883 100644
--- a/lib/private/Avatar.php
+++ b/lib/private/Avatar.php
@@ -271,7 +271,7 @@ class Avatar implements IAvatar {
$white = imagecolorallocate($im, 255, 255, 255);
imagefilledrectangle($im, 0, 0, $size, $size, $background);
- $font = __DIR__ . '/../../core/fonts/OpenSans-Semibold.woff';
+ $font = __DIR__ . '/../../core/fonts/OpenSans-Semibold.ttf';
$fontSize = $size * 0.4;
$box = imagettfbbox($fontSize, 0, $font, $text);