Skip to content

change font size of Chinese chracters #328

@wuhaoyu1993

Description

@wuhaoyu1993

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions