fonte installée ou importée

This commit is contained in:
Fred Tempez 2024-01-06 16:04:15 +01:00
parent 92c7384816
commit 9fac118004

View File

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