Skip to content
Snippets Groups Projects
Commit 906f7695 authored by efalcy's avatar efalcy
Browse files

hotline #113598 : fix greek fonts in picture display

parent 71e4a624
Branches
Tags
1 merge request!3559hotline #113598 : fix greek fonts in picture display
Pipeline #10475 passed with stage
in 43 minutes and 36 seconds
- ticket #113598 : Support international dans l'affichage des notices non trouvées
\ No newline at end of file
......@@ -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;
}
......
File added
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment