Merge pull request #8440 from nextcloud/8428_13

[stable13] Use TTF fonts for avatar generation
This commit is contained in:
Roeland Jago Douma 2018-02-20 08:21:04 +01:00 committed by GitHub
commit a3de507b76
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 1 additions and 1 deletions

Binary file not shown.

Binary file not shown.

View File

@ -254,7 +254,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);