cbdevnet / pt1230 Goto Github PK
View Code? Open in Web Editor NEWBrother P-Touch 1230PC Linux interface
Brother P-Touch 1230PC Linux interface
Look into using fontconfig to get some kind of bitmapped font data going in order to print text directly
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.
Prominently breaks spaces and dashes
Is it possible to have pt1230 print multiple copies of a label? And Ideally when used with a PT-2430 have it cut between labels?
00 08: Battery low
...by prefixing output with INFO: / DEBUG: / etc
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.
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
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?
In order to fix behaviour with eg. 12mm tapes
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.