We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8e088ec commit 3bebfeeCopy full SHA for 3bebfee
admin/generator/index.php
@@ -107,16 +107,16 @@
107
foreach ($font_paths as $path) {
108
try {
109
$files = FontUtility::getFontsFromPath($path, false);
110
- $files = array_map(fn ($file): string => PathUtility::getPublicPath($file), $files);
111
if (count($files) > 0) {
112
- foreach ($files as $name => $path) {
+ foreach ($files as $name => $fontPath) {
+ $publicPath = PathUtility::getPublicPath($fontPath);
113
$font_styles .= '
114
@font-face {
115
font-family: "' . $name . '";
116
- src: url(' . $path . ') format("truetype");
+ src: url(' . $publicPath . ') format("truetype");
117
}
118
';
119
- $font_family_options[$path] = $name;
+ $font_family_options[$publicPath] = $name;
120
121
122
} catch (\Exception $e) {
0 commit comments