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

version» Context lines:

pike.git/src/modules/Image/font.c:1: - /* $Id: font.c,v 1.14 1997/09/01 14:14:49 per Exp $ */ + /* $Id: font.c,v 1.15 1997/09/01 19:24:40 per Exp $ */   #include <config.h>      #define SPACE_CHAR 'i'      /*   **! module Image   **! note - **! $Id: font.c,v 1.14 1997/09/01 14:14:49 per Exp $<br> + **! $Id: font.c,v 1.15 1997/09/01 19:24:40 per Exp $<br>   **! 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:491:    img->ysize = this->height+1;    img->rgb.r=img->rgb.g=img->rgb.b=255;    img->img=malloc(img->xsize*img->ysize*sizeof(rgb_group));       if (!img) { free_object(o); free(width_of); error("Out of memory\n"); }       MEMSET(img->img,0,img->xsize*img->ysize*sizeof(rgb_group));       for (j=0; j<args; j++)    { -  THREADS_ALLOW(); +     to_write = sp[j-args].u.string->str; -  +  THREADS_ALLOW();    switch(this->justification)    {    case J_LEFT: xsize = 0; break;    case J_RIGHT: xsize = img->xsize-width_of[j]-1; break;    case J_CENTER: xsize = img->xsize/2-width_of[j]/2-1; break;    }    if(xsize<0) xsize=0;    for (i = 0; i < (int)sp[j-args].u.string->len; i++)    {    c=to_write[i];