Skip to content
Extraits de code Groupes Projets
Valider b70c7914 rédigé par Fil's avatar Fil
Parcourir les fichiers

deplacement des polices dans dist/polices/ et suppression de la constante _DIR_POLICES

parent 7164f345
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -8,6 +8,9 @@ dist/inc-forum.html -text
dist/inc-petition.html -text
dist/inc-pied.html -text
dist/inc-rubriques.html -text
dist/polices/dustismo-license.txt -text svneol=unset#application/octet-stream
dist/polices/dustismo.ttf -text
dist/polices/dustismo_bold.ttf -text
dist/puce.gif -text
dist/puce_rtl.gif -text
dist/spip.png -text
......@@ -398,9 +401,6 @@ ecrire/lang/spip_br.php -text
ecrire/lang/spip_bs.php -text
ecrire/lang/spip_cs.php -text
ecrire/lang/spip_ru.php -text
ecrire/polices/dustismo-license.txt -text svneol=unset#application/octet-stream
ecrire/polices/dustismo.ttf -text
ecrire/polices/dustismo_bold.ttf -text
ecrire/rien.gif -text
ecrire/safehtml/classes/HTMLSax3.php -text
ecrire/safehtml/classes/HTMLSax3/Decorators.php -text
......
Fichier déplacé
Fichier déplacé
Fichier déplacé
......@@ -2504,7 +2504,7 @@ function printWordWrapped($image, $top, $left, $maxWidth, $font, $couleur, $text
else {
$fontps = imagepsloadfont($font);
// Est-ce qu'il faut reencoder? Pas testable proprement, alors...
// imagepsencodefont( $fontps, find_in_path(_DIR_POLICES . "standard.enc") );
// imagepsencodefont($fontps,find_in_path('polices/standard.enc'));
$GLOBALS["font"]["$font"] = $fontps;
}
}
......@@ -2638,9 +2638,16 @@ function image_typo() {
&& function_exists('imageCreateTrueColor');
if (!file_exists($fichier) AND $flag_gd_typo) {
# que faire si la police n'existe pas ?
$font = find_in_path(_DIR_POLICES . $police);
if (file_exists($fichier))
$image = $fichier;
else if (!$flag_gd_typo)
return $texte;
else {
$font = find_in_path('polices/'.$police);
if (!$font) {
spip_log(_T('fichier_introuvable', array('fichier' => $police)));
$font = find_in_path('polices/'."dustismo.ttf");
}
$imgbidon = imageCreateTrueColor($largeur, 45);
$retour = printWordWrapped($imgbidon, $taille+5, 0, $largeur, $font, $couleur, $text, $taille, 'left', $hauteur_ligne);
......@@ -2671,20 +2678,13 @@ function image_typo() {
imagedestroy($im);
$image = $fichier;
} else if ($flag_gd_typo) {
$image = $fichier;
}
if ($image) {
$dimensions = getimagesize($image);
$largeur = $dimensions[0];
$hauteur = $dimensions[1];
return inserer_attribut("<img src='$image' style='width: ".$largeur."px; height: ".$hauteur.px."' class='format_png' />", 'alt', $alt);
} else {
return $texte;
}
$dimensions = getimagesize($image);
$largeur = $dimensions[0];
$hauteur = $dimensions[1];
return inserer_attribut("<img src='$image' style='width: ".$largeur."px; height: ".$hauteur.px."' class='format_png' />", 'alt', $alt);
}
//
......
......@@ -860,7 +860,6 @@ function spip_initialisation() {
define('_IMG_GD_MAX_PIXELS', 0); # nombre de pixels maxi pour calcul de la vignette avec gd
define('_DIR_POLICES', "polices/");
// Icones
# le chemin http (relatif) vers les images standard
define('_DIR_IMG_PACK', (_DIR_RESTREINT . 'img_pack/'));
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter