GithubHelp home page GithubHelp logo

Comments (5)

KeeganFargher avatar KeeganFargher commented on May 28, 2024 1

Try look at the string inside the .contains() method, not the boolean variable, such as {B}, {U}, etc.

The only unclear ones are these::

{LS:M} - means line space 24
{LS:L} - means line space 30
{C} - means center text
{R} - means right align text

from react-native-esc-pos.

KannarFr avatar KannarFr commented on May 28, 2024 1

Ahah sure, when I meant what is lsm, lsl, ct and rt, I meant what mean {LS:M}, {LS:L}, ...

And you just answered, thanks.

from react-native-esc-pos.

KeeganFargher avatar KeeganFargher commented on May 28, 2024

I read through the source code, here's a list of the commands:

            boolean bold = line.contains("{B}");
            boolean underline = line.contains("{U}");
            boolean h1 = line.contains("{H1}");
            boolean h2 = line.contains("{H2}");
            boolean h3 = line.contains("{H3}");
            boolean lsm = line.contains("{LS:M}");
            boolean lsl = line.contains("{LS:L}");
            boolean ct = line.contains("{C}");
            boolean rt = line.contains("{R}");

you can have a look here

from react-native-esc-pos.

KannarFr avatar KannarFr commented on May 28, 2024

Hi, thanks for sharing this, but what means lsm, lsl, ct and rt?

from react-native-esc-pos.

leesiongchan avatar leesiongchan commented on May 28, 2024

I have updated the README.

from react-native-esc-pos.

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.