-
Notifications
You must be signed in to change notification settings - Fork 311
change font size of Chinese chracters #328
Description
i have printed cashier's bill whitch contain Chinese chracters and alpha-numeric text. And i want to change the fontsize of the text by using Escpos.set. But it only work with alpha-numeric text, the Chinese chracters not change. How can i deal with this problem?
- searched open and closed issues for duplicates
Bug description
the code is following:
from escpos import printer
epson = printer.Network('192.168..')
epson.codepage = 'gb2312'
epson.set(align='left', font='a', text_type='normal', width=3, height=3, density=9, invert=False, smooth=False,flip=False)
epson.text('hellow,123,你好\n')
epson.set(align='left', font='a', text_type='normal', width=1, height=1, density=9, invert=False, smooth=False,flip=False)
epson.text('hellow,123,你好\n')
The Chinese chracters dosn't been small when i run this code.Only alpha-numeric text chenged.
Device info
**Printer: EPSON TM-T82Ⅱ
**python-escpos version:2.2.0
**python version: 3.6.5
**operating system:win7