DRAW-28 Label not lying on its wire: text hanging off the stub's end, or justified against its side¶
| Severity | Status | Implementation |
|---|---|---|
| suggestion | runs in better_erc | mid, depends on NET-21, NET-26 |
Data it needs: drawing geometry.
Looks at. The schematic drawing (geometry).
What it catches. A horizontal label whose text does not lie along the wire it is anchored on: the text runs off the end of the stub into free space, or past the far end of a stub too short for it into the pin.
Why it matters. Text over its wire says which wire it names; text in the air next to a wire end can be read as naming the wire below, and a label on the left of a block that runs away from it breaks the column of label ends. House style (Roman, 31 Oct 2026): left side left-justified, right side right-justified.
Example. SEL anchored at the left end of the stub to SEL1 with justify right: the text sits left of the wire end, over nothing.
How to check. For each local, global or hierarchical label at 0° or 180°: the direction its text runs comes from the justification (KiCad 10 ignores the angle for this: justify left runs right, justify right runs left), the direction of its stub from the wire attached at the anchor. They must agree, and the stub must be at least as long as the text box plus one grid step. A label on a pin or a joint without a stub of its own is reported here too.
Fix. Set the justification in the label's properties; lengthen the stub.
Scope. Local labels only: a global or hierarchical label's flag always starts at the wire end. The stub must be as long as the text plus drawing.label.stub_extra.
Settings¶
Set them in the project file under [checks."DRAW-28"], or for one run with --set DRAW-28.NAME=VALUE. A name that starts with drawing. is shared by several checks and is set under that name alone.
| Setting | Default | Meaning |
|---|---|---|
drawing.label.stub_extra |
1.27 mm | wire a label's stub has beyond its text |
drawing.font |
unset | font family a text that names none is measured in, as KiCad draws it (KiCad Font: the stroke font); unset: KiCad's own default font (eeschema appearance.default_font) |
Test schematics¶
Each schematic below is in test_schematics/sources. The block under it is what berc check --only DRAW-28 reports on it.
draw-28_label_off_wire¶
suggestion DRAW-28 #zdd label LONGNAME at x 96.52 y 45.72: stub 5.08 mm under text 9.98 mm
sheet /, item label LONGNAME
fix: justify the label so its text lies along the wire, on a stub longer than the text
suggestion DRAW-28 #4gf label OFF at x 68.58 y 45.72: text runs left off its wire
sheet /, item label OFF
fix: justify the label so its text lies along the wire, on a stub longer than the text
suggestion DRAW-28 #42k label ONPIN at x 76.2 y 55.88: text runs right off its wire
sheet /, item label ONPIN
fix: justify the label so its text lies along the wire, on a stub longer than the text
DRAW-28 also fires on the test schematics of other checks: draw-40_wire_through_label, draw-41_pin_lead, draw-42_touching_colours.