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

gEDA-cvs: CVS update: f_print.nw



  User: mike    
  Date: 06/06/02 10:22:52

  Modified:    .        f_print.nw
  Log:
  Allow negative values to be set for output_text_vector_threshold, add logic
  
  for vector vs. PS text selection, and set default to text only.
  
  
  
  
  Revision  Changes    Path
  1.20      +16 -5     eda/geda/devel/libgeda/noweb/f_print.nw
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: f_print.nw
  ===================================================================
  RCS file: /home/cvspsrv/cvsroot/eda/geda/devel/libgeda/noweb/f_print.nw,v
  retrieving revision 1.19
  retrieving revision 1.20
  diff -u -b -r1.19 -r1.20
  --- f_print.nw	20 May 2006 14:03:50 -0000	1.19
  +++ f_print.nw	2 Jun 2006 14:22:51 -0000	1.20
  @@ -329,12 +329,24 @@
   
           case(OBJ_TEXT):
             if (o_current->visibility == VISIBLE) {
  +	    int vectors = 0;
  +
  +	    /* Look at flags and determine if vector text should
  +	     * be used for output.
  +	     */
  +	    if(w_current->text_output == VECTOR_FONTS) {
  +	      vectors = 1;
  +	    } else if( (w_current->print_vector_threshold > 0)
  +			&& ( o_text_num_lines(o_current->text->string) > 
  +			     w_current->print_vector_threshold)) {
  +	      vectors = 1;
  +	    }
  +            
               fprintf(fp, "gsave\n");
   			
  -            if (w_current->text_output == VECTOR_FONTS || 
  -		o_text_num_lines(o_current->text->string) > 
  -	 	  w_current->print_vector_threshold) 
  +            if (vectors)
               {	
  +	      /* Output vectors */
                 f_print_objects(w_current, 
                                 fp, 
                                 o_current->text->
  @@ -342,11 +354,10 @@
                                 origin_x, origin_y, 
                                 scale, unicode_count, unicode_table);
               } else {
  -
  +	      /* Output text */
                 o_text_print(w_current, fp, 
                              o_current,
                              origin_x, origin_y, unicode_count, unicode_table);
  -
               }
   
               fprintf(fp, "grestore\n");