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

TextPrintable is not working #110

Open
syedbaber opened this issue Apr 27, 2023 · 1 comment
Open

TextPrintable is not working #110

syedbaber opened this issue Apr 27, 2023 · 1 comment

Comments

@syedbaber
Copy link

TextPrintable is not working. If we give any text as a string so it will not print. If .setNewLinesAfter(1) is provided blank paper is coming out.
Other RawPrinting and ImagePrinting is working fine.

@jalikk24
Copy link

jalikk24 commented Jun 1, 2024

i made this

ArrayList<Printable> printables = new ArrayList<>();
        printables.add(new RawPrintable.Builder(new byte[]{27,100,4}).build());

        printables.add(new TextPrintable.Builder()
                .setText("Testing Apotek Akbar")
                .setNewLinesAfter(1)
                .build());

        Printooth.INSTANCE.printer().print(printables);
        Printooth.INSTANCE.printer().setPrintingCallback(this);

and the printer is not printing the text, what should i do?

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