X-Git-Url: http://git.cyclocoop.org/?p=lhc%2Fweb%2Fclavette_www.git;a=blobdiff_plain;f=www%2Fplugins-dist%2Ffiltres_images%2Ffiltres%2Fimages_typo.php;h=e764bdfa48e74a1f1104573420aa127fe6fa8200;hp=019a4c7fc0816f67f427a67504e0ab8cf1bc17ec;hb=cc641eb476987612f6d6df1a5417c1c5582a8ab8;hpb=7d84a490677fb716a1fd4df260f8eab35f6a8506 diff --git a/www/plugins-dist/filtres_images/filtres/images_typo.php b/www/plugins-dist/filtres_images/filtres/images_typo.php index 019a4c7..e764bdf 100644 --- a/www/plugins-dist/filtres_images/filtres/images_typo.php +++ b/www/plugins-dist/filtres_images/filtres/images_typo.php @@ -2,7 +2,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2014 * + * Copyright (c) 2001-2016 * * Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James * * * * Ce programme est un logiciel libre distribue sous licence GNU/GPL. * @@ -398,6 +398,7 @@ function rtl_visuel($texte, $rtl_global) { // http://code.spip.net/@printWordWrapped function printWordWrapped($image, $top, $left, $maxWidth, $font, $couleur, $text, $textSize, $align="left", $hauteur_ligne = 0) { static $memps = array(); + $fontps = false; // imageftbbox exige un float, et settype aime le double pour php < 4.2.0 settype($textSize, 'double'); @@ -453,6 +454,7 @@ function printWordWrapped($image, $top, $left, $maxWidth, $font, $couleur, $text $line = ''; + $lines = array(); while (count($words) > 0) { $mot = $words[0]; @@ -475,6 +477,7 @@ function printWordWrapped($image, $top, $left, $maxWidth, $font, $couleur, $text // Deux passes pour recuperer, d'abord, largeur_ligne // necessaire pour alignement right et center + $largeur_max = 0; foreach ($lines as $line) { if ($rtl_global) $line = rtl_visuel($line, $rtl_global);