[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

gEDA-cvs: CVS update: o_text_basic.c



  User: mike    
  Date: 07/02/10 14:43:52

  Modified:    .        o_text_basic.c s_toplevel.c
  Log:
  Added code to scale the output postscript font under user control.
  
  This is controlled via the postscript-font-scale rc keyword.
  
  
  
  
  Revision  Changes    Path
  1.26      +2 -1      eda/geda/gaf/libgeda/src/o_text_basic.c
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: o_text_basic.c
  ===================================================================
  RCS file: /home/cvspsrv/cvsroot/eda/geda/gaf/libgeda/src/o_text_basic.c,v
  retrieving revision 1.25
  retrieving revision 1.26
  diff -u -b -r1.25 -r1.26
  --- o_text_basic.c	17 Dec 2006 04:14:07 -0000	1.25
  +++ o_text_basic.c	10 Feb 2007 19:43:44 -0000	1.26
  @@ -1753,7 +1753,8 @@
     /* Collect pertinent info about the text location */
     x = o_current->text->x;
     y = o_current->text->y;
  -  font_size = (float) o_current->text->size/72.0*1000.0;
  +  font_size = (((float)(o_current->text->size))
  +	       * w_current->postscript_font_scale / 72.0 * 1000.0);
     fprintf(fp,"] %d %d %d %f text\n",angle,x,y,font_size);
   
     
  
  
  
  1.16      +1 -0      eda/geda/gaf/libgeda/src/s_toplevel.c
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: s_toplevel.c
  ===================================================================
  RCS file: /home/cvspsrv/cvsroot/eda/geda/gaf/libgeda/src/s_toplevel.c,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -b -r1.15 -r1.16
  --- s_toplevel.c	5 Dec 2006 03:24:08 -0000	1.15
  +++ s_toplevel.c	10 Feb 2007 19:43:48 -0000	1.16
  @@ -329,6 +329,7 @@
     toplevel->setpagedevice_pagesize = FALSE;
   
     toplevel->postscript_prolog = NULL;
  +  toplevel->postscript_font_scale = 1.0;
   
     toplevel->stroke_color = 0;
   
  
  
  


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