Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom Stylesheet #159

Closed
aargon007 opened this issue Jul 27, 2024 · 4 comments
Closed

Custom Stylesheet #159

aargon007 opened this issue Jul 27, 2024 · 4 comments

Comments

@aargon007
Copy link

I have been using this SDK. it's great and helpful. I want to customize the printing receipt design. how can i do that....

  1. i want to add a border top and bottom with black 1px or 2 px height
  2. i want to add tab space in addTextLine. can i do that?
  3. can i create grid column?
@tr3v3r
Copy link
Owner

tr3v3r commented Jul 30, 2024

@aargon007

  1. for the line I see the corresponding method in the native SDK. It has to be exported to the RN.
    Here is an example of how to do that.
    Native SDK reference:
image
2. What do you mean by tab space? Could you show me an example
3. ESC POS methods generally don't have a grid or flex system, so you most likely have to build something on your own.

I'd appreciate any ideas or contribution.

@aargon007
Copy link
Author

Hi @tr3v3r , addLineSpace() working fine. but i want to add some space before a text line.

await Printer.addTextLine(printerInstance, { left: \t Item comped, right: -${priceInEuro(originalItemPrice(item))}, });

I use \t for adding tab space but it didn't work. Also can you please add the addHLine fuction in the package.

image

@aargon007
Copy link
Author

wow amazing. i have using EscPosEncoder with your package. It's working awesome

@aargon007
Copy link
Author

Hi @tr3v3r , is there any option setting font family for printed text?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants