A partial implementation of the StarPRNT command protocol in Gleam
Find a file
Lily Rose 3e686f2103
Some checks failed
test / test (push) Failing after 2s
Bump version to 1.1.1
2026-03-16 14:25:41 +11:00
.github/workflows Initial commit 2026-03-08 00:40:51 +11:00
fonts Remove unifont and replace unscii full with fullwidth 2026-03-08 15:25:02 +11:00
src Add ability to disable grapheme expansion for missing characters 2026-03-16 14:25:30 +11:00
test Add ability to disable grapheme expansion for missing characters 2026-03-16 14:25:30 +11:00
.gitignore Initial commit 2026-03-08 00:40:51 +11:00
gen_font.py Improve font gen script 2026-03-08 15:24:41 +11:00
gleam.toml Bump version to 1.1.1 2026-03-16 14:25:41 +11:00
manifest.toml Fix wrapping logic 2026-03-10 16:31:05 +11:00
README.md Initial commit 2026-03-08 00:40:51 +11:00

starprnt

Package Version Hex Docs

gleam add starprnt@1
import starprnt
import starprnt/font
import simplifile

pub fn main() -> Nil {
  let assert Ok(Nil) =
    "Hello from Gleam!"
    |> starprnt.render_text(font.terminus_32_normal, 1, starprnt.WrapPreferWords, True)
    |> simplifile.write_bits("/dev/usb/lp0", _)
}

Further documentation can be found at https://hexdocs.pm/starprnt.

Development

gleam run   # Run the project
gleam test  # Run the tests