106 |
global textstyle |
global textstyle |
107 |
if not textstyle: |
if not textstyle: |
108 |
textstyle = GLTextStyle.create("sans", 0, 1) |
textstyle = GLTextStyle.create("sans", 0, 1) |
109 |
return TextVob(textstyle, text, 0) |
return TextVob(textstyle, text, 1) |
110 |
|
|
111 |
def putText(vs, cs1, text, color = None, x = 0, y = 0, z = 0, h = 10): |
def putText(vs, cs1, text, color = None, x = 0, y = 0, z = 0, h = 1, key = None): |
112 |
if color != None: |
if color != None: |
113 |
putnoc(vs, getDListNocoords("Color " + js(color))) |
putnoc(vs, getDListNocoords("Color " + js(color))) |
114 |
putnoc(vs, getDListNocoords(""" |
putnoc(vs, getDListNocoords(""" |
123 |
t = getText(text) |
t = getText(text) |
124 |
|
|
125 |
cs = vs.coords.coordsys(cs1, z, x, y-h, h, h) |
cs = vs.coords.coordsys(cs1, z, x, y-h, h, h) |
126 |
vs.matcher.addSub(cs1, cs, str(text)) |
vs.matcher.addSub(cs1, cs, key or str(text)) |
127 |
|
|
128 |
vs.map.put(t, cs) |
vs.map.put(t, cs) |
129 |
|
|