#include "fonts.h" /* extern*/ XFontStruct *font_struct; extern GC gc; extern Widget draw_reg; XFontStruct *font_attrib[NFONTS]; Font font_info[NFONTS]; int init_fonts(void) { int i; /* Initialize the fonts */ for (i=1; i NFONTS) return 1; /* Set our font */ XSetFont(XtDisplay(draw_reg), gc, font_info[font_no]); /* Set our pointer */ font_struct = font_attrib[font_no]; return 0; }