• v0.2.0 d3e137ff9c

    Version 0.2.0
    All checks were successful
    Build ptprnt / build (push) Successful in 3m52s
    Stable

    moritz released this 2025-10-16 19:36:15 +00:00 | 3 commits to master since this release

    Added

    • Multi-label support - print multiple labels in sequence
    • LabelBuilder API with fluent interface for constructing labels
    • FakePrinter driver for testing without hardware (outputs PNG files)
    • PrinterService core service for printer operations
    • CliParser component with ICliParser interface
    • ICairoWrapper interface for testable graphics rendering
    • MockCairoWrapper for unit testing
    • Pre-commit hook for automatic copyright updates
    • USB trace mode for debugging (-Dusb_trace_only=true)

    Changed

    • Major refactoring: Reorganized codebase into layered architecture
      • Application layer: PtouchPrint, CliParser, PrinterService
      • Printer drivers: Moved to src/printers/ with factory pattern
      • Graphics system: Added builder pattern and Cairo abstraction
      • Core services: Separated into src/core/ directory
    • Label class now uses dependency injection for Cairo/Pango
    • CLI parsing separated from main application logic
    • Updated dependencies to latest versions

    Fixed

    • Label corruption issues resolved
    • Printer info retrieval bugs
    • USB attachment logic
    • Multiple lines handling in labels
    • Printer selection logic
    Downloads