Difference for 2d/font.c from version 1.11 to 1.12


version 1.11 version 1.12
Line 18
 
Line 18
  * Graphical routines for drawing fonts.   * Graphical routines for drawing fonts.
  *   *
  * $Log$   * $Log$
    * Revision 1.12  1999/12/15 06:07:20  donut
    * added font->ft_aw field (average width) since ft_w is usually too large on proportional fonts
    *
  * Revision 1.11  1999/10/20 06:22:37  donut   * Revision 1.11  1999/10/20 06:22:37  donut
  * use 0 gap for ogl texture fonts handling   * use 0 gap for ogl texture fonts handling
  *   *
Line 1464
 
Line 1467
  FONT        = newfont;   FONT        = newfont;
  FG_COLOR    = 0;   FG_COLOR    = 0;
  BG_COLOR    = 0;   BG_COLOR    = 0;
   
    {
    int x,y,aw;
    char tests[]="abcdefghij1234.A";
    gr_get_string_size(tests,&x,&y,&aw);
    newfont->ft_aw=x/(float)strlen(tests);
    }
   
 #ifdef OGL  #ifdef OGL
  ogl_init_font(newfont);   ogl_init_font(newfont);

Legend:
line(s) removed in v.1.11 
line(s) changed
 line(s) added in v.1.12