version 1.11 | | version 1.12 |
---|
| | |
* 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 |
* | | * |
| | |
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); |