pyboxbuilder.lid.label

Label generation — framed, frameless, and diagonal text.

Everything here is built in the lid’s own frame: (0, 0) is the lid’s lower-left corner and z = 0 is the face the label sits on, so a caller only has to move the result onto the lid’s top.

Classes

Label

A built label, split by the colour each part prints in.

Functions

build_label

Build a label for a lid face, or None if it would be illegible.

text_height_for

Cap height the label text will be set at, in mm.