diff --git a/VERSIONS_HOTLINE/113598 b/VERSIONS_HOTLINE/113598 new file mode 100644 index 0000000000000000000000000000000000000000..cfb197652f3c8a1660d9f76237b02ca964309c99 --- /dev/null +++ b/VERSIONS_HOTLINE/113598 @@ -0,0 +1 @@ + - ticket #113598 : Support international dans l'affichage des notices non trouvées \ No newline at end of file diff --git a/library/Class/WebService/Vignette.php b/library/Class/WebService/Vignette.php index 8fe8501fbda80030d168fedf73f94ba4b81bedd8..a465725283ddbf6419eb150673d49ba12765f439 100644 --- a/library/Class/WebService/Vignette.php +++ b/library/Class/WebService/Vignette.php @@ -93,6 +93,7 @@ class Class_WebService_Vignette extends Class_WebService_Abstract { static function renderThumbnail($id_notice,$titre,$type_doc) { + $image = static::createImage($titre, 300, 400, $type_doc); imagepng($image); } @@ -129,7 +130,9 @@ class Class_WebService_Vignette extends Class_WebService_Abstract { public static function writeText ($titre, $image_obj, $position = 0) { // Tronçonner le texte - $texte=wordwrap(utf8_decode(str_replace('<br />', ';', $titre)), 12, ';'); + + $texte=wordwrap(str_replace('<br />', ';', $titre), 12, ';'); + $texte=explode(";", $texte); // Parametres @@ -142,7 +145,7 @@ class Class_WebService_Vignette extends Class_WebService_Abstract { // Afficher foreach($texte as $ligne) { - imagettftext($image_obj, 30, 0, $pos_x, $pos_y, $couleur, PATH_FONTS . 'Vera.ttf', trim($ligne)); + imagettftext($image_obj, 30, 0, $pos_x, $pos_y, $couleur, PATH_FONTS . 'OpenSans.ttf', $ligne); $pos_y += $hauteur; } diff --git a/public/opac/fonts/OpenSans.ttf b/public/opac/fonts/OpenSans.ttf new file mode 100644 index 0000000000000000000000000000000000000000..db433349b7047f72f40072630c1bc110620bf09e Binary files /dev/null and b/public/opac/fonts/OpenSans.ttf differ