From: Andre W. <wo...@us...> - 2006-07-28 06:24:49
|
Hi, On 27.07.06, andrea valle wrote: > Auto-solved using > > textattrs = [text.size.Huge] > > How can I set an arbitrary size? e.g. textattrs = [text.size(10)] text.size(number) is just a shortcut to the named sizes. Still, the non-continuous and limited size range of LaTeX applies. (PyX creates a similar set of sizes for TeX as well such that you can use the same size selections in TeX as in LaTeX mode.) So you could modify the font size as you would do in TeX (or LaTeX). Alternatively you can use the PyX units to scale all text by unit.set(xscale=10) in the beginning of your script. Note that this leads to just scaling all the text instead of using the proper font design sizes as it was intended by Knuth to do. Furthermore you can apply transformations within PyX. This can also be used to alter the text size. For example: from pyx import * c = canvas.canvas() c.text(0, 0, "Hello, world!", [trafo.scale(10)]) c.writeEPSfile("hello") HTH, André -- by _ _ _ Dr. André Wobst / \ \ / ) wo...@us..., http://www.wobsta.de/ / _ \ \/\/ / PyX - High quality PostScript and PDF figures (_/ \_)_/\_/ with Python & TeX: visit http://pyx.sourceforge.net/ |