- WindowHandle:=200000
- query_font (WindowHandle, Font)
- get_system ('operating_system', OS)
- if (OS{0:2} == 'Win')
- set_font (WindowHandle, Font[0]+'-Bold-34')
- else
- set_font (WindowHandle, Font[0]+'-Bold-34')
- endif
- read_image (Image, 'printer_chip/printer_chip_01')
- disp_message (200000, '系统测试', 'window', 12, 12, 'black', 'true')
复制代码 也可以实现封装好的代码:- set_display_font (200000, 20, 'mono', 'true', 'false')
复制代码
效果图:
|