|
From: Symion <kn...@ip...> - 2011-02-23 04:12:38
|
First I would just like to congratulate Visual 5.50 developers. Wow!
Text and Extrusion are amazing!
However there seems to be a problem displaying the "%" character with
text object.
from visual import *
txt = text(text="%")
Generates the following error!
Traceback (most recent call last):
File "<pyshell#78>", line 1
txt = text(text="%")
File "C:\Python27\lib\site-packages\vis\primitives.py", line 687, in
__init__
self.paintText()
File "C:\Python27\lib\site-packages\vis\primitives.py", line 715, in
paintText
spacing=self.__spacing, vertical_spacing=self.__vertical_spacing)
File "C:\Python27\lib\site-packages\vis\shapes.py", line 854, in text
totlen = lenctr(contours[i])
File "C:\Python27\lib\site-packages\vis\shapes.py", line 844, in lenctr
totlen += (vector(contour[j])-vector(contour[j+1])).mag
NameError: global name 'vector' is not defined
Also...
lab = label(text="&")
The "&" character is unprintable.
(I think I may have mentioned this for an earlier version of Visual.)
|