Thanks Andre,
Totally exhaustive
Best
-a-
On 28 Jul 2006, at 08:24, Andre Wobst wrote:
> 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
> / \ \ / ) [EMAIL PROTECTED], http://www.wobsta.de/
> / _ \ \/\/ / PyX - High quality PostScript and PDF figures
> (_/ \_)_/\_/ with Python & TeX: visit http://pyx.sourceforge.net/
>
> -----------------------------------------------------------------------
> --
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to
> share your
> opinions on IT & business topics through brief surveys -- and earn cash
> http://www.techsay.com/default.php?
> page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> PyX-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/pyx-user
>
>
Andrea Valle
DAMS - Facoltà di Scienze della Formazione
Università degli Studi di Torino
http://www.semiotiche.it/andrea
[EMAIL PROTECTED]
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
PyX-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyx-user