set_printer_options
Tune thermal printer output by setting paper width in dots, print darkness, or a custom font file, and choose which printer to adjust.
Instructions
Tune print quality for a printer. width is the paper width in dots (384 is standard for common 48mm/58mm thermal labels - only change it if prints come out cropped or skewed). density (0=light, 1=normal, 2=dark) adjusts print darkness if prints look too light/dark - leave unset to use the printer's own default. font_path points to a .ttf/.otf file to use for print_text instead of the built-in fallback. name picks which configured printer to change settings for - leave unset to use the active printer.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| width | No | ||
| density | No | ||
| font_path | No |