arvi roboto et lora websafe

This commit is contained in:
Fred Tempez 2022-04-22 15:44:58 +02:00
parent 908e5501d1
commit f833181e37
3 changed files with 16 additions and 16 deletions

View File

@ -194,6 +194,11 @@ class common {
'font-family' => '\'Arial Black\', Gadget, sans-serif', 'font-family' => '\'Arial Black\', Gadget, sans-serif',
'resource' => 'websafe' 'resource' => 'websafe'
], ],
'arvo'=> [
'name' => 'Arvo',
'font-family' => 'Arvo, sans-serif',
'resource' => 'websafe'
],
'courrier' => [ 'courrier' => [
'name' => 'Courier', 'name' => 'Courier',
'font-family' => 'Courier, \'Liberation Mono\', monospace', 'font-family' => 'Courier, \'Liberation Mono\', monospace',
@ -219,11 +224,21 @@ class common {
'font-family' => 'Impact, Charcoal, sans-serif', 'font-family' => 'Impact, Charcoal, sans-serif',
'resource' => 'websafe' 'resource' => 'websafe'
], ],
'lora'=> [
'name' => 'Lora',
'font-family' => 'Lora, serif',
'resource' => 'websafe'
],
'lucida' => [ 'lucida' => [
'name' => 'Lucida', 'name' => 'Lucida',
'font-family' => '\'Lucida Sans Unicode\', \'Lucida Grande\', sans-serif', 'font-family' => '\'Lucida Sans Unicode\', \'Lucida Grande\', sans-serif',
'resource' => 'websafe' 'resource' => 'websafe'
], ],
'roboto'=> [
'name' => 'Roboto',
'font-family' => 'Roboto, sans-serif',
'resource' => 'websafe'
],
'tahoma' => [ 'tahoma' => [
'name' => 'Tahoma', 'name' => 'Tahoma',
'font-family' => 'Tahoma, Geneva, sans-serif', 'font-family' => 'Tahoma, Geneva, sans-serif',

View File

@ -833,11 +833,6 @@ if ($this->getData(['core', 'dataVersion']) < 11400) {
'font-family' => 'Arimo, sans-serif', 'font-family' => 'Arimo, sans-serif',
'resource' => 'https://fonts.cdnfonts.com/css/arimo' 'resource' => 'https://fonts.cdnfonts.com/css/arimo'
], ],
'arvo'=> [
'name' => 'Arvo',
'font-family' => 'Arvo, sans-serif',
'resource' => 'https://fonts.cdnfonts.com/css/arvo'
],
'dancing-script' => [ 'dancing-script' => [
'name' => 'Dancing Script', 'name' => 'Dancing Script',
'font-family' => '\'Dancing Script\', sans-serif', 'font-family' => '\'Dancing Script\', sans-serif',
@ -883,11 +878,6 @@ if ($this->getData(['core', 'dataVersion']) < 11400) {
'font-family' => 'Lato, sans-serif', 'font-family' => 'Lato, sans-serif',
'resource' => 'https://fonts.cdnfonts.com/css/lato' 'resource' => 'https://fonts.cdnfonts.com/css/lato'
], ],
'lora'=> [
'name' => 'Lora',
'font-family' => 'Lora, serif',
'resource' => 'https://fonts.cdnfonts.com/css/lora'
],
'old-standard-tt-3'=> [ 'old-standard-tt-3'=> [
'name' => 'Old Standard TT', 'name' => 'Old Standard TT',
'font-family' => '\'Old Standard TT\', serif', 'font-family' => '\'Old Standard TT\', serif',
@ -918,11 +908,6 @@ if ($this->getData(['core', 'dataVersion']) < 11400) {
'font-family' => 'Rancho, sans-serif', 'font-family' => 'Rancho, sans-serif',
'resource' => 'https://fonts.cdnfonts.com/css/rancho' 'resource' => 'https://fonts.cdnfonts.com/css/rancho'
], ],
'roboto'=> [
'name' => 'Roboto',
'font-family' => 'Roboto, sans-serif',
'resource' => 'https://fonts.cdnfonts.com/css/roboto'
],
'ubuntu'=> [ 'ubuntu'=> [
'name' => 'Ubuntu', 'name' => 'Ubuntu',
'font-family' => 'Ubuntu, sans-serif', 'font-family' => 'Ubuntu, sans-serif',

View File

@ -1221,7 +1221,7 @@ class theme extends common {
// Chargement de la police // Chargement de la police
$fileContent .= '@font-face {' ; $fileContent .= '@font-face {' ;
$fileContent .= 'font-family:"' . $fontValue['font-family'] . '";'; $fileContent .= 'font-family:"' . $fontValue['font-family'] . '";';
$fileContent .= 'src: url("' . $fontValue['resource'] . '");'; $fileContent .= 'src: local("' . $fontValue['name'] . '"), url("' . $fontValue['resource'] . '") format("woff");';
$fileContent .= '}' ; $fileContent .= '}' ;
} }
} }