pike.git / src / modules / Image / font.c

version» Context lines:

pike.git/src/modules/Image/font.c:1: - /* $Id: font.c,v 1.28 1998/02/07 22:28:38 mirar Exp $ */ + /* $Id: font.c,v 1.29 1998/02/10 13:45:46 mirar Exp $ */   #include <config.h>      #define SPACE_CHAR 'i'      /*   **! module Image   **! note - **! $Id: font.c,v 1.28 1998/02/07 22:28:38 mirar Exp $ + **! $Id: font.c,v 1.29 1998/02/10 13:45:46 mirar Exp $   **! class font   **!   **! note   **! Short technical documentation on a font file:   **! This object adds the text-drawing and -creation   **! capabilities of the <ref>Image</ref> module.   **!   **! For simple usage, see   **! <ref>write</ref> and <ref>load</ref>.   **!
pike.git/src/modules/Image/font.c:468:    struct image *img;    INT32 xsize=0,i,maxwidth2,j;    int *width_of;    unsigned char *to_write;    int to_write_len;    int c;    struct font *this = (*(struct font **)(fp->current_storage));    if (!this)    error("font->write: no font loaded\n");    -  maxwidth2=0; +  maxwidth2=1;       width_of=(int *)malloc((args+1)*sizeof(int));    if(!width_of) error("Out of memory\n");       for (j=0; j<args; j++)    {    if (sp[j-args].type!=T_STRING)    error("font->write: illegal argument(s)\n");       xsize = 0;