Skip to content

Bematech MP-4200TH incorrect hinting #31

Description

@DiegoParadeda

Hello! I've had the following issues when using Bematech MP-4200TH:

image

  • Please notice how condensed and expanded text styles are not being applied in the left image
  • Also it's usage is erasing a few letters
  • The image on the right corresponds to the applied solution and will be mentioned in a PR very soon

Steps to reproduce:

Use the following code to print to a Bematech MP-4200TH
The result should look like the image above (the one with Issue written in it)

from pyescpos.conn.win32 import Win32Raw as Connection
from pyescpos import barcode
from pyescpos.impl.bematech import MP4200TH

conn = Connection.create('MP-4200 TH') # printer name (on windows 10)
impressora = MP4200TH(conn)
impressora.init()


impressora.text("Hello World! 1\nLine")
impressora.lf()

impressora.set_condensed(1)
impressora.text("Hello World! condensed\nLine")
impressora.set_condensed(0)
impressora.lf()

impressora.set_expanded(1)
impressora.text("Hello World! expanded\nLine")
impressora.set_expanded(0)
impressora.lf()

impressora.code128(
        '0123456789',
        barcode_height=96,
        barcode_width=barcode.BARCODE_DOUBLE_WIDTH,
        barcode_hri=barcode.BARCODE_HRI_BOTTOM
    )
impressora.lf()

impressora.ean13(
        '4007817525074',
        barcode_height=120,
        barcode_width=barcode.BARCODE_NORMAL_WIDTH,
        barcode_hri=barcode.BARCODE_HRI_TOP
    )
impressora.cut()

Printer used:
WhatsApp Image 2023-06-22 at 10 34 38 AM

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions