0

I have a string and I want to put just the date 01/01/2015 in bold. I have done this:

$text_dateretour="Date retour:<fontname=Helvetica-Bold>01/01/2015</fontname>";
$p->fit_textline($text_dateretour, 478, 520, "fontsize=10 italicangle=-12 fillcolor=black");

but the date value does not become bold.

Thanks for help

askmish
  • 6,464
  • 23
  • 42
user3791255
  • 109
  • 1
  • 6

2 Answers2

0

You just need to use the <b> tag i.e.,

$text_dateretour="Date retour:<fontname='Helvetica'><b>15/05</b></fontname>";
echo $text_dateretour;
Sulthan Allaudeen
  • 11,330
  • 12
  • 48
  • 63
0

You can always try to use the "fakebold" option. So your optList would be "fontsize='10',italicangle='-12',fillcolor='black' fakebold"

Aaron Havens
  • 313
  • 4
  • 7