According to How to implement custom fonts in TCPDF I import my custom font to TCPDF, but when I use it I see this result .
this is part of my code
$pdf = new MYPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false);
// set some language dependent data:
$lg = Array();
$lg['a_meta_charset'] = 'UTF-8';
//$lg['a_meta_dir'] = 'rtl';
$lg['a_meta_language'] = 'fa';
$lg['w_page'] = 'page';
// set some language-dependent strings (optional)
$pdf->setLanguageArray($lg);
// set image scale factor
$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);
// ---------------------------------------------------------
// add a page
$pdf->AddPage();
// convert TTF font to TCPDF format and store it on the fonts folder
$fontname = TCPDF_FONTS::addTTFfont(K_PATH_FONTS.'BYekan.ttf', 'TrueTypeUnicode', '', 14);
//ym($fontname);
//die();
//$this->pdf->SetFont('byekan');
$pdf->SetFont($fontname, '', 8, '', true);
my text language is Persian and also I try some another fonts but result is some thing like this, some character not show correctly.also I try http://fonts.snm-portal.com/ but results was the same .