我正在尝试打印一页。我用printer_select_font
改变字体,然后我用printer_draw_text
打印,但它很慢。
所以我的问题是,我可以换成printer_write
另一种语言吗?提前致谢。
我使用这段代码:
$handle = printer_open();
printer_start_doc($handle, "My Document");
$handle = printer_open();
printer_set_option($handle,PRINTER_FORMAT_CUSTOM,'2x2');
$handle = printer_open();
printer_start_doc($handle, "My Document");
printer_start_page($handle);
$font = printer_create_font("Saumil_guj2", 15, 9, 100, false, false, false, 0);
printer_select_font($handle, $font);
$dyna=10;
if($_SESSION['slip_setting']['soc_name']=="full")
{
printer_draw_text($handle, $_SESSION['society_info']['soc_name_eng'], 10, $dyna);
$tot=$dyna+15;
}