Skip to content

Commit f547794

Browse files
authored
admin: fix font preview on subfolder installation
1 parent ff90cdc commit f547794

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Utility/FontUtility.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public static function getFontPreviewImage(
2929
],
3030
array $attributes = [],
3131
): string {
32-
$absoluteFontPath = PathUtility::getAbsolutePath($fontPath);
32+
$absoluteFontPath = PathUtility::resolveFilePath($fontPath);
3333
$lineHeight = (int) round($fontSize * 1.5);
3434

3535
$image = imagecreatetruecolor($width, $height);

0 commit comments

Comments
 (0)