Bisent0, thank you for the information.
I used your instructions however when I included the font php, I receive the error of Notice: Undefined offset: 32 in ...\_tcpdf_5.0.002\tcpdf.php on line 7194
the undefined offset warning goes from 32 to 255
The related code in tcpdf.php:
$cw = &$font['cw'];
$s = '[';
for ($i = 32; $i < 256; ++$i) {
$s .= $cw[$i].' '; <--------- line 7194
}
just for curiosity I bypassed it by adding this line:
if(!isset($cw[$i])) $cw[$i]="";
this time I was able to create pdf and use the font but the font is corrupted (the encoding is wrong and the words are on top of each other)
I checked the pdf generated at
http://www.fpdf.org/makefont/ and compared it to default dejavusans php at tcpdf fonts folder
dejavusans.php has 517 lines while the one I created has 24 lines (I tried with 6-7 fonts and it is same for all of them)
Do you have any ideas about this?
Thanks