Dear Brendon,

Am 11.06.2013 um 21:58 schrieb Brendon Higgins:
> I may have found a bug in PyX 0.12.1. Below is a simple example:
> 
> from pyx import *
> unit.set(xscale = 0.5)
> c = canvas.canvas()
> c.text(0, 0, "Hello")
> c.stroke(path.line(0, 0, 1, 1), [deco.curvedtext("Howdy")])
> c.writePDFfile("test")
> 
> I would expect the output (text.pdf) to have the text "Hello" and "Howdy" 
> both 
> at the same size (half the default, following the xscale), but "Howdy" is 
> quite obviously bigger.

There are known issues with attributes not properly being applied by PyX 
0.12.1. This has recently been fixed in SVN head. Maybe you could just give it 
a try. I quickly run your example and it looks fine here, i.e. "Hello" and 
"Howdy" are of the same size.

> Am I doing something wrong? If this is a bug, is there a workaround? In my 
> project I'm using deco.curvedtext for it's exclude parameter (with the text 
> vertically centered into the line: vshift.mathaxis), which deco.text doesn't 
> seem to support.

I tried the following and it seems to work fine:

   ...
   c.stroke(path.line(0, 0, 1, 1), [deco.curvedtext("Howdy", 
[text.vshift.mathaxis], exclude=0.1)])
   ...


HTH,


André

> Thanks,
> Brendon
> 
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by Windows:
> 
> Build for Windows Store.
> 
> http://p.sf.net/sfu/windows-dev2dev
> _______________________________________________
> PyX-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/pyx-user

-- 
by  _ _      _    Dr. André Wobst, Amselweg 22, 85716 Unterschleißheim
   / \ \    / )   [email protected], http://www.wobsta.de/
  / _ \ \/\/ /    PyX - High quality PostScript and PDF figures
 (_/ \_)_/\_/     with Python & TeX: visit http://pyx.sourceforge.net/

Attachment: smime.p7s
Description: S/MIME cryptographic signature

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
PyX-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyx-user

Reply via email to