Skip to content

Commit

Permalink
Progress with formatted text
Browse files Browse the repository at this point in the history
  • Loading branch information
kemkriszt committed Jan 15, 2024
1 parent 92a051e commit fa54000
Show file tree
Hide file tree
Showing 12 changed files with 479 additions and 51 deletions.
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,11 @@ This layer contains code to interact with printers

- [TSPL](documentations/TSPL.pdf)

### Usefull units:
# Usefull units:

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

# Notes

- If a font is not working, make sure the extension is TTF
6 changes: 4 additions & 2 deletions 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,9 +36,9 @@
"typescript": "^5.3.3"
},
"dependencies": {
"@types/w3c-web-usb": "^1.0.10",
"clean-html": "^2.0.1",
"fontkit": "^2.0.2",
"image-pixels": "^2.2.2",
"node-html-parser": "^6.1.12",
"usb": "^2.11.0"
}
}
156 changes: 132 additions & 24 deletions pnpm-lock.yaml

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

2 changes: 1 addition & 1 deletion src/commands/tspl/commands/basic/TSPLDisplay.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import TSPLCommand from "../../TSPLCommand";

export type DisplayType = "CLS"|"IMAGE"
export type DisplayType = "CLS"|"IMAGE"|"OFF"

/**
* Displays the image buffer on the screen
Expand Down
Loading

0 comments on commit fa54000

Please sign in to comment.