From 6eb4f8fe9fa7bfb36881671d0172b531e24ec045 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Tempez?= Date: Sat, 7 May 2022 19:17:27 +0200 Subject: [PATCH] =?UTF-8?q?Bug=20avec=20les=20fontes=20install=C3=A9es?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/module/theme/theme.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/module/theme/theme.php b/core/module/theme/theme.php index 11040563..a0c344c0 100644 --- a/core/module/theme/theme.php +++ b/core/module/theme/theme.php @@ -1223,7 +1223,7 @@ class theme extends common { $path_parts = pathinfo(helper::baseUrl(false) . self::DATA_DIR . 'fonts/' . $fontValue['resource']); // Chargement de la police $fileContentCss .= '@font-face {' ; - $fileContentCss .= 'font-family:"' . $fontId . '";'; + $fileContentCss .= 'font-family:"' . $fontValue['name'] . '";'; $fileContentCss .= 'src: url("' . $fontValue['resource'] . '") format("' . $path_parts['extension'] . '");'; $fileContentCss .= '}' ; // Préchargement