Skip to content

Commit

Permalink
Merge pull request #21 from kemkriszt/dev
Browse files Browse the repository at this point in the history
Added label layer
  • Loading branch information
kemkriszt authored May 12, 2024
2 parents 52b04ea + 0008fe1 commit 47aec4b
Show file tree
Hide file tree
Showing 45 changed files with 1,424 additions and 45 deletions.
5 changes: 5 additions & 0 deletions .changeset/twenty-stingrays-allow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"label-printer": minor
---

Added Label layer
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,7 @@ node_modules

# Build files
/dist
/dist-example
/dist-example

**/.DS_Store
.DS_Store
17 changes: 15 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# Label Print
# Label Printer

> :warning: `label-printer` is still under heavy development and is subject to frequent API changes
This package provides a js based implementation for variouse languages used for label printers

Expand Down Expand Up @@ -35,4 +37,15 @@ This layer contains code to interact with printers

## Documentation of supported languages

- [TSPL](documentations/TSPL.pdf)
- [TSPL](documentations/TSPL.pdf)

# Usefull units:

- 1 pt = 1/72 inch
- 1 dot = 1 / dpi

# Notes

- If a font is not working, make sure the extension is TTF
- If you want to use bold fonts, make sure you have one for weight 700
- Regular font weight is 400
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@
"repository": "https://github.com/kemkriszt/raw-thermal-print.git",
"devDependencies": {
"@changesets/cli": "^2.27.1",
"@types/fontkit": "^2.0.6",
"@types/jest": "^29.5.11",
"@types/w3c-web-usb": "^1.0.10",
"jest": "^29.7.0",
"ts-jest": "^29.1.1",
"ts-node": "^10.9.2",
Expand All @@ -34,8 +36,9 @@
"typescript": "^5.3.3"
},
"dependencies": {
"@types/w3c-web-usb": "^1.0.10",
"fontkit": "^2.0.2",
"image-pixels": "^2.2.2",
"node-html-parser": "^6.1.12",
"usb": "^2.11.0"
}
}
167 changes: 163 additions & 4 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 47aec4b

Please sign in to comment.