Skip to content
Snippets Groups Projects
Commit 55ef241e authored by Laurent's avatar Laurent
Browse files

Merge branch...

Merge branch 'hotline#113598_vignettes_bootstrap_afficher_par_defaut_l_image_qui_apparait_en_grise_au_passage_de_la_souris' into 'hotline'

hotline #113598 : fix greek fonts in picture display

See merge request !3559
parents dad6d950 906f7695
Branches
Tags
1 merge request!3559hotline #113598 : fix greek fonts in picture display
Pipeline #10476 passed with stage
in 43 minutes and 14 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