Giter Site home page Giter Site logo

Comments (6)

andrey-ushakov avatar andrey-ushakov commented on May 28, 2024

Hi,

Thank you for submitting this!
It seems that it's impossible to use standard printer's commands to justify content in different columns on the same line (source: qzind/tray#212)

So I've added some math to calculate text position in columns.

Could you please test if now it works as expected?

from esc_pos_printer.

terence-truong avatar terence-truong commented on May 28, 2024

Hi Andrey,

Thank you for looking into this. I pulled your changes, and it looks really good.

I tried it, but now it's wrapping to the next line. It looks like it's 3 or 4 characters that gets put onto the next line for me. I've been adjusting the column width differently to see if that helps, but it doesn't.

Here are my relevant printer specs:

Resolution: 203X180DPI
Print Width(max): 80mm
Fixed LeftMargin: 7mm
Fixed RightMargin: 9mm
Curent CodePage: PC437

Thanks again.

-Terence

from esc_pos_printer.

andrey-ushakov avatar andrey-ushakov commented on May 28, 2024

Hi Terence,

Normally you should be able to print 48 characters per line, could you please check that?

Are you trying to print the same data you shared above?

Thanks

from esc_pos_printer.

terence-truong avatar terence-truong commented on May 28, 2024

Hi Andrey,

I'm only able to print 42 characters per line. Also, I am printing the same data I shared above.

I looked up the specs on my printer:

Resolution: 203 DPI x 180DPI

Characters Per Line โ€“
Font A: 42 (80mm) / 37 (58mm)
Font B: 56 (80mm) / 49 (58mm)

Characters Size โ€“
Font A: 12 x 24
Font B: 9 x 17

Thanks.

from esc_pos_printer.

gvNN7 avatar gvNN7 commented on May 28, 2024

I'm facing the same issue using the Epson TM T88V-i (via network), if any alignment is used in
PosColumn, like bellow, the width of column is ignored or are wrapped to the next line, i have removed the align option and the alignment is being provided by width, but i think that is not a good deal..

Characters per line (default)
80mm -> Font A: 42; Font B: 56
58mm -> Font A: 30; Font B: 40

OBS: there is no margin applied to the printer

image
(I have another column above this code to complement the 12 columns)

image

from esc_pos_printer.

andrey-ushakov avatar andrey-ushakov commented on May 28, 2024

The issue should be fixed in the latest releases. Don't hesitate to reopen the ticket if the problem persists.

from esc_pos_printer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.