case 6: $fcol = $hcol; break; default: $fcol = $scol; } $id = '<strong>' . $member->id . '</strong>'; $nom_adh_ext = '<strong>' . ($preferences->pref_bool_display_title ? $member->stitle . ' ' : '') . $member->sname . '</strong>'; $photo = $member->picture; $photofile = $photo->getPath(); // Photo 100x130 and logo $pdf->Image($photofile, $x0, $y0, 25); $pdf->Image($logofile, $xl, $y0, round($wlogo)); // Color=#8C8C8C: Shadow of the year $pdf->SetTextColor(140); $pdf->SetFontSize($year_font_size); $pdf->SetXY($x0 + 65, $y0 + $hlogo); $pdf->writeHTML($an_cot, false, 0); // Colored Text (Big label, id, year) $pdf->SetTextColor($fcol['R'], $fcol['G'], $fcol['B']); $pdf->SetFontSize(8); $pdf->SetXY($x0 + 69, $y0 + 28); $pdf->writeHTML($id, false, 0); $pdf->SetFontSize($year_font_size); $pdf->SetXY($x0 + 64.7, $y0 + $hlogo - 0.3); $pdf->writeHTML($an_cot, false, 0); // Abbrev: Adapt font size to text length $fontsz = 12; $pdf->SetFontSize($fontsz); while ($pdf->GetStringWidth($abrev) > $max_text_size) { $fontsz--;