Ho la necessità in tcpdf di creare un stringa con valori presi da db. Tale stringa dovrà contenere parti con fontsize differenti.

Il modo più semplice è usare css inline, solo che non è possibile valorizzare l'attributo font-size con misure in pixel ma solo con small, medium, ..., xx-large, in questo modo non è possibile scrivere più grande di 'xx-large'.

Per ora ho fatto una cosa del genere:

Codice PHP:
     //parametri codici a barre
     
$paramscb $pdf->serializeTCPDFtagParameters(array($codbar'EAN13'''''50150.1, array('stretch'=>false'position'=>'S''border'=>false'padding'=>0'fgcolor'=>array(0,0,0), 'bgcolor'=>array(255,255,255), 'text'=>true'font'=>'helvetica''fontsize'=>12'stretchtext'=>16), 'N'));


    
$stringa '


    <span>'
.$a.'</span>

    <span><tcpdf method="write1DBarcode" params="'
.$paramscb.'" /></span>
    <table>
        <tr>
            <td width="10" ></td>
            <td width="120" >'
.$b.'</td>
            <td width="50" align="right" >
                <span style="font-size: xx-large;">'
.$c.'</span>
            </td>
        </tr>
    </table>
    </p>'
;
    
$pdf->writeHTML($stringatruefalsetruefalse'' ); 
Come faccio a scrivere $c più grande?

Penso sia possibile fare il tutto con serializeTCPDFtagParameters, come ho fatto per i codici a barre, ma poi nel tag tcpdf nell'attributo method che dovrei mettere?

<tcpdf method='????' params="'.$paramsvarc.'" />

Grazie in anticipo per eventuali risposte.