[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Re: gEDA-dev: libgeda, gschem: New print dialog



Title:


Tomaz Solc wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi

  
I'm afraid that that would require a rewrite of the actual libgeda printing 
code, whereas I was working very much within the current interface for 
printing (just adding a prettier frontend it).  I'm afraid that's out of the 
remit of this particular patch.
    

Not a rewrite. Just one new variable with this setting somewhere and a
single new "fprintf" in the function that prints postscript prolog.
Anyway, I can make the patch myself once your new print dialog is in the
CVS.
  
Stop... the Prolog is copied verbatim from a file, and everything between the end of the DSC comments and the %%EndProlog comment should be exactly the same between runs of the tool.  If we need a fudge factor applied to the size of the text, then that can be done too.  There is a much better place to do so.  It's in the text output routine.  There, a calculation is done to scale the internal measure of the text size 'points' to the postscript units.  This is the logical choice for such a change, it keeps the information together in one place.  Imagine someone later coming to try to figure out why his/her text comes up strange sizes and not being able to find where the scaling is occurring...

Note also, that there is the possibility that the text is also output as vectors, changing scale there might be a bit more difficult, as it uses the primitive line drawing routines to render the text.

Mike
-- 
--------------------------------------------------
                              Mike Jarabek
                                FPGA/ASIC Designer
 http://www.istop.com/~mjarabek
--------------------------------------------------



_______________________________________________
geda-dev mailing list
geda-dev@moria.seul.org
http://www.seul.org/cgi-bin/mailman/listinfo/geda-dev