fonte installée ou importée

This commit is contained in:
Fred Tempez 2024-01-06 16:04:17 +01:00
parent f2793d613d
commit b3924c73b4

View File

@ -741,7 +741,8 @@ class theme extends common
[
'name' => $fontName,
'font-family' => $fontFamilyName,
'resource' => self::DATA_DIR . 'font/' . basename($resource)
// Stocke l'URL our lien vers la fonte dans data
'resource' => $type === 'imported' ? $resource : self::DATA_DIR . 'font/' . basename($resource),
]
]);