字体字母作为符号输出

时间:2015-07-17 06:23:59

标签: php fonts

嘿伙计们我刚刚将网站翻译成我的语言,并且它是haąčęėįšųūž蚂蚁等字母。这是立陶宛语。并且我遇到了问题,当网站输出报告信息到pdf文件时,这些字母变成?, š,和其他符号。这是我的代码,我怎样才能使它变得不动和字母:

$font_dir = DP_BASE_DIR.'/lib/ezpdf/fonts';

require($AppUI->getLibraryClass('ezpdf/class.ezpdf'));

$pdf = new Cezpdf($paper='A4',$orientation='landscape');
$pdf->ezSetCmMargins(1, 2, 1.5, 1.5);
$pdf->selectFont("$font_dir/AbrilFatface.afm");

$pdf->ezText(safe_utf8_decode(dPgetConfig('company_name')), 12);

$date = new CDate();
$pdf->ezText("\n" . $date->format($df) , 8);
$last_week = new CDate($date);
$last_week->subtractSpan(new Date_Span(array(7,0,0,0)));

$pdf->selectFont("$font_dir/AbrilFatface.afm");
$pdf->ezText("\n" . safe_utf8_decode($AppUI->_('Project Completed Task Report')), 12);
$pdf->ezText(safe_utf8_decode($pname), 15);
$pdf->ezText(safe_utf8_decode($AppUI->_('Tasks Completed Since')) . " " . $last_week->format($df) , 10);
$pdf->ezText("\n");
$pdf->selectFont("$font_dir/AbrilFatface.afm");
$title = null;
$options = array(
    'showLines' => 2,
    'showHeadings' => 1,
    'fontSize' => 9,
    'rowGap' => 4,
    'colGap' => 5,
    'xPos' => 50,
    'xOrientation' => 'right',
    'width'=>'750',
    'shaded'=> 0,
    'cols'=>array(
        0=>array('justification'=>'left','width'=>250),
        1=>array('justification'=>'left','width'=>95),
        2=>array('justification'=>'center','width'=>75),
        3=>array('justification'=>'center','width'=>75),
        4=>array('justification'=>'center','width'=>75))
);

我已尝试将字体更改为Abril Fatface。但那个ddnt有帮助,所以我该怎么办?

0 个答案:

没有答案