From: Bruce S. <Bru...@nc...> - 2012-07-17 20:15:33
|
FontTools alone isn't sufficient. From the Linux (source) download page at vpython.org: In support of the 3D text and extrusion objects, you will need to install the font-handling modules FontTools, ttfquery (version 1.0.4 or later), and Polygon (all available from pypi.python.org), for which the following conditions apply: "Polygon is being distributed subject to the following conditions: This distribution contains code from the GPC Library, and/or code resulting from the use of the GPC Library. This usage has been authorized by The University of Manchester, on the understanding that the GPC-related features are used only in the context of this distribution. It is not permitted to extract the GPC code from the distribution as the basis for commercial exploitation, unless a GPC Commercial Use Licence is obtained from The University of Manchester, contact: http://www.cs.man.ac.uk/~toby/gpc/". Bruce Sherwood On Tue, Jul 17, 2012 at 12:50 PM, Antonio Garcia <aga...@gm...> wrote: > Hi list, > > I have a problem with a text3D.py example... > > Basically it doesn't correctly, and I receive the same error (FontTools > modules are not installed...) when I run all the examples. > I have a compiled version of vpython (5.74) on ubuntu 12.04. I've installed > the FontTools 2.3 and compile it with no problems. > > Any idea? > > antonio@master:~/dev/visual-5.74_release/examples$ python text3D.py > The ttfquery and/or FontTools modules are not installed, > so the text object is unavailable. > The ttfquery and/or FontTools modules are not installed, > so the text object is unavailable. > Traceback (most recent call last): > File "text3D.py", line 8, in <module> > vertical = (title.upper_left-title.start).norm() > File "/usr/local/lib/python2.7/dist-packages/vis/primitives.py", line > 1002, in get_upper_left > return self.__frame.frame_to_world(self.__upper_left) > AttributeError: 'text' object has no attribute '_text__frame' > > > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Visualpython-users mailing list > Vis...@li... > https://lists.sourceforge.net/lists/listinfo/visualpython-users > |