Texts are anchors plus a string, not ordinary shapes. texts and expand_text run. Pattern matching and multi-patterning are also Available.
textsAvailable · yields texts
layer t = texts(68, 20)
layer t = texts(68, 20, "VDD*")
Text anchors on layer/datatype, optionally a name glob. Complement: texts(l,d) - texts(l,d,"VDD*"). Interaction with polygons: interacting(m1, t).
Notes
expand_textAvailable · yields polygons
layer box = expand_text(t, 0.05 um)
A mini-box around the text anchor (bounding-box centre ± d; d ≤ 0 becomes 1 dbu). For AND with metal.
Notes
matchAvailable · yields polygons
layer hits = match(m1, file="patterns.gds", cell="VIA_CHAIN", tolerance=10 dbu)
DRC+ pattern over an axis-aligned bounding box (90° rotations). orient=r0 only unrotated. Hits = the matched shapes in the search layer. cell= from the same layout or file= plus a cell.
Notes
tolerance in dbu/µm: bounding-box width/height and origin.count(hits) > 0 as a check.uncolorable / coloredAvailable · yields shapes / layer
check "DP" : uncolorable(m1, space=0.05 um, masks=2)
layer m1a = colored(m1, space=0.05 um, masks=2, mask=1)
Multi-patterning: conflict graph at distance < space, masks colours. uncolorable = not k-colourable. colored … mask=i one colour, then space on the same mask. masks=2 is exact bipartite, masks>2 uses exact backtracking k-colouring; components with more than 32 nodes are reported as not yet supported instead of guessed.
Notes