|
From: Andre W. <wo...@us...> - 2003-10-21 23:52:31
|
Hi, On 21.10.03, Joerg Lehmann wrote: > > 2: However, for this to work the linewidth must be set before we set > > the dash so I introduced a class member in PathStyle named prio > > (default 0) and I set this prio to 1 in linewidth. Then in > > decoratedpath::_writestyles I do a reverse sort on prio before we > > write the styles to file. > > Similar ordering problems arise at other places in PyX, where we > use a similar solution. André, maybe we should use the mechanism > of the text module? Well, I'm not satisfied with the attribute handling (expecially its ordering) in the text module since it uses magic numbers. I'm still not sure what to do regarding this subject. For the moment, a magic sorting is the best we can do, but we should try to think hard for a generic solution for the future. André -- by _ _ _ Dr. André Wobst / \ \ / ) wo...@us... / _ \ \/\/ / PyX - High quality PostScript figures with Python & TeX (_/ \_)_/\_/ visit http://pyx.sourceforge.net/ |