How to use the klayout.db.DText.new function in klayout

To help you get started, we’ve selected a few klayout examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github jonpry / Pill / foo.py View on Github external
def dbCreateLabel(cell,layer,origin,text,justification,orientation,font,height):
   l1 = layermap[ (layer[0],layer[1]) ]
   l1 = layout.layer(l1[0], l1[1]) 
   t = db.DText.new(text,origin[0],origin[1])
   t.halign = 1 #center
   t.valign = 1 #center
   top.shapes(l1).insert(t)
github jonpry / Pill / runtime.py View on Github external
def dbCreateLabel(cell,layer,origin,text,justification=None,orientation=None,font=None,height=1):
   l1 = maplayer(layer)
   t = db.DText.new(text,origin[0],origin[1])
   t.size = height
   t.halign = 1 #center
   t.valign = 1 #center
   top.shapes(l1).insert(t)
   flocals = locals()
   print("createLabel: " + str([flocals[arg] for arg in inspect.getargspec(dbCreateLabel).args]))