print_label_text
Prints text and optional images as labels on a Brother P-touch CUBE over Bluetooth; use dry-run to preview the PNG before printing.
Instructions
文字(と、あれば画像)をラベルにして印刷する(PT-P300BT)。改行で複数行(12mm テープは 1 行がおすすめ)。
dry_run=true なら印刷せず、仕上がりの PNG だけ作る(最初は必ずこれで見る)。 tape_mm: 3.5 / 6 / 9 / 12 / 18 / 24。PT-P300BT で使えるのは 3.5〜12。実機で確認済みなのは 12 だけ。 media: laminated(ラミネート)/ non_laminated(布・リボンなど)。font_size 省略で高さに自動で合わせる。 image_path を渡すと、画像と文字を横に並べる。image_position: left(画像→文字)/ right(文字→画像)/ both(画像→文字→画像。画像で文字を挟む)/ between(文字→画像→文字。文字で画像を挟む。後ろの文字は text_after)。 icon_scale: 画像の大きさ 0.2〜1。 font_path: 好きなフォントファイル(かわいいフォントなど)。 latin_font_path: 半角の英数字・記号だけ別のフォントにする(日本語と英語を混ぜるとき)。 segments: 文字ごとにフォントを選ぶ。[{"text": "ラベル", "font_path": "/…/a.ttf"}, {"text": "Label", "font_path": "/…/b.ttf"}] を左から順につなぐ(1 行。text は無視される)。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| media | No | laminated | |
| copies | No | ||
| dry_run | No | ||
| tape_mm | No | ||
| segments | No | ||
| font_path | No | ||
| font_size | No | ||
| icon_scale | No | ||
| image_path | No | ||
| text_after | No | ||
| image_position | No | left | |
| latin_font_path | No |