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

version» Context lines:

pike.git/src/modules/Image/font.c:1: - /* $Id: font.c,v 1.25 1998/01/10 21:20:05 hubbe Exp $ */ + /* $Id: font.c,v 1.26 1998/01/16 22:09:10 grubba Exp $ */   #include <config.h>      #define SPACE_CHAR 'i'      /*   **! module Image   **! note - **! $Id: font.c,v 1.25 1998/01/10 21:20:05 hubbe Exp $ + **! $Id: font.c,v 1.26 1998/01/16 22:09:10 grubba 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:252:    INT32 x,y;    unsigned char *p;    p=ci->pixels;       for (y=height; y>0; y--)    {    nl=pos+xsize;    for (x=(INT32)ci->width; x>0; x--)    {    int r,c; -  if((c=255-*p)) +  if((c=255-*p)) {    if ((r=pos->r+c)>255)    pos->r=pos->g=pos->b=255;    else    pos->r=pos->g=pos->b=r; -  +  }    pos++;    p++;    }    pos=nl;    }   }      /***************** methods *************************************/      /*