Branch: Tag:

1997-09-05

1997-09-05 11:42:54 by Henrik Grubbström (Grubba) <grubba@grubba.org>

The default-font might now work.

Rev: server/modules/graphics/graphic_text.pike:1.67

1: - constant cvs_version="$Id: graphic_text.pike,v 1.66 1997/09/04 12:40:02 grubba Exp $"; + constant cvs_version="$Id: graphic_text.pike,v 1.67 1997/09/05 11:42:54 grubba Exp $";   constant thread_safe=1;      #include <module.h>
708: Inside #if efun(get_font)
   if(args->light) bold=-1;    if(args->italic) italic=1;    if(args->black) bold=2; -  data = get_font("default",32,bold,italic, +  data = get_font(roxen->QUERY(default_font),32,bold,italic,    lower_case(args->talign||"left"),    (float)(int)args->xpad, (float)(int)args->ypad);    }   #endif    -  +  if (!data) { +  roxen_perror("gtext: No font!\n"); +  return(0); +  } +     // Fonts and such are now initialized.    img = make_text_image(args,data,text,id);