GithubHelp home page GithubHelp logo

cbdevnet / pt1230 Goto Github PK

View Code? Open in Web Editor NEW
31.0 31.0 4.0 45 KB

Brother P-Touch 1230PC Linux interface

C 96.69% Makefile 1.54% Shell 1.77%
barcode brother brother-label-printer cups label-printer p-touch printer pt-1230pc

pt1230's People

Contributors

anotherwon avatar cbdevnet avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

pt1230's Issues

Text mode

Look into using fontconfig to get some kind of bitmapped font data going in order to print text directly

PT-2430 Cut Before Label

When using the Brother software the PT-2430 will cut off the excess leading tape before the label prints. Is there a way to get pt1230 to do the same? Using pt1230 it does cut the label after the label prints but not the excess before the label.

make: freetype-config: Command not found

I cloned the repo in to a folder on my computer, and it is spitting out a couple different errors related to FreeType

make: freetype-config: Command not found
make: freetype-config: Command not found
cc -Wall -g     textlabel.c   -lfontconfig -o textlabel
textlabel.c:4:10: fatal error: ft2build.h: No such file or directory
 #include <ft2build.h>
          ^~~~~~~~~~~~
compilation terminated.
make: *** [<builtin>: textlabel] Error 1

I am running Arch Linux, along with freetype2 2.9.1 and fontconfig 2.13.0 packages updated and installed on my system.

Fonts are not showing up on textlabel output

I get the folling warning when compiling

CC=/usr/bin/cc make
/usr/bin/cc -Wall -g    pt1230.c   -o pt1230
/usr/bin/cc -Wall -g -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-4 -pthread     textlabel.c  -lfreetype  -lfontconfig -o textlabel
textlabel.c: In function 'line_store':
textlabel.c:52:12: warning: the comparison will always evaluate as 'true' for the pointer operand in '*lines + (sizetype)(size * 8)' must not be NULL [-Waddress]
   52 |         if(!((*lines) + size)){
      |            ^

The Output only shows a square. However some characters like >,",! get rendered

./textlabel --font "Arial" -- "T"
0000000000000011111111111111111111111111111111111111111110000000
0000000000000011111111111111111111111111111111111111111110000000
0000000000000011000000000000000000000000000000000000000110000000
0000000000000011000000000000000000000000000000000000000110000000
0000000000000011000000000000000000000000000000000000000110000000
0000000000000011000000000000000000000000000000000000000110000000
0000000000000011000000000000000000000000000000000000000110000000
0000000000000011000000000000000000000000000000000000000110000000
0000000000000011000000000000000000000000000000000000000110000000
0000000000000011000000000000000000000000000000000000000110000000
0000000000000011000000000000000000000000000000000000000110000000
0000000000000011000000000000000000000000000000000000000110000000
0000000000000011000000000000000000000000000000000000000110000000
0000000000000011000000000000000000000000000000000000000110000000
0000000000000011000000000000000000000000000000000000000110000000
0000000000000011111111111111111111111111111111111111111110000000
0000000000000011111111111111111111111111111111111111111110000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000

Fedora 37

rpm -qa | grep -e freetype -e fontconfig -e pkgconf
pkgconf-m4-1.8.0-3.fc37.noarch
libpkgconf-1.8.0-3.fc37.x86_64
pkgconf-1.8.0-3.fc37.x86_64
pkgconf-pkg-config-1.8.0-3.fc37.x86_64
freetype-2.12.1-3.fc37.x86_64
fontconfig-2.14.1-2.fc37.x86_64
freetype-2.12.1-3.fc37.i686
fontconfig-2.14.1-2.fc37.i686
freetype-devel-2.12.1-3.fc37.x86_64
fontconfig-devel-2.14.1-2.fc37.x86_64

Nothing is printing

When I run like:

sudo ./pt1230 -v 0 -f testing.file -u

testing.file is generated with:

./textlabel testing > testing.file

output:

Magic 80 20 42 30 59 30 00 00
Media width: 12
Media type: 1
Media length: 0
Error descriptors 00 00
Status 00
Phase 00 High 00 Low 00
Notification 00

nothing happened. Any ideas?

Making this work with android

It would be nice to have a way to use this label printer on Android. The protocol seems simple enough, but I wouldn't know how to do it myself.

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.