title: TCPDF font switch
body: <p>I've been looking around the TCPDF docs (<a href="http://www.tcpdf.org/doc/code/classTCPDF.html" rel="nofollow">http://www.tcpdf.org/doc/code/classTCPDF.html</a>) and can't find the solution to this issue anywhere.</p>
  
  <p>How do I output a string on the PDF with mixed fonts?
  ie. let's say I want to output "hello world" but to have "hello" outputed using one font and "world" outputed other font.</p>
  
  <p>I know how to do it in 2 different tries, ie. pick one font, echo 1 word, pick other font, echo other word. But is there a way to somehow do it all at once?</p>
  
  <p>My issue is with echoing out centered HTML spans. I have 2 spans outputed using <code>writeHTMLCell</code> function where one span should be outputed using one font and the second one using the other font.</p>
  
  <p>Can I maybe do this using TCPDF CSS?</p>
  
  <p>Basically, I'm looking for a way to have centered text within a box with invisible borders, and 1 word of the text is outputed using 1 font / color, and the other word using other font / color.</p>
  
  <p>Thanks!</p>
  
  <p>EDIT:
  btw: I'm using custom font imported via <code>addTTFfont</code> function.</p>