kqcircuits.util.label_polygons

kqcircuits.util.label_polygons.get_text_polygon(label: str, size: int = 500.0) Region[source]

Returns the given label string as a region.

If size argument is given as non-integer, will round it to nearest micron.

Utilizes speed ups compared to generating text geometry with KLayout’s TEXT PCells. Only supports characters layed out in the font_polygons.oas file.

kqcircuits.util.label_polygons.load_font_polygons() dict[str, Region][source]

Loads from static OAS file a region for each letter used in labels.

Cached for reuse.

../_images/kqcircuits.util.label_polygons.png