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

version» Context lines:

pike.git/src/modules/Image/font.c:1: - /* $Id: font.c,v 1.58 2000/03/25 23:34:32 hubbe Exp $ */ + /* $Id: font.c,v 1.59 2000/07/07 13:56:45 grubba Exp $ */   #include "global.h"      #define SPACE_CHAR 'i'      extern unsigned char * image_default_font;   #define IMAGE_DEFAULT_FONT_SIZE 30596      /*   **! module Image   **! note - **! $Id: font.c,v 1.58 2000/03/25 23:34:32 hubbe Exp $ + **! $Id: font.c,v 1.59 2000/07/07 13:56:45 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:182:   #endif      #include "dmalloc.h"      #include "fdlib.h"      extern struct program *font_program;   extern struct program *image_program;      #undef THIS - #define THIS (*(struct font **)(fp->current_storage)) - #define THISOBJ (fp->current_object) + #define THIS (*(struct font **)(Pike_fp->current_storage)) + #define THISOBJ (Pike_fp->current_object)      struct font   {    unsigned long height; /* height of character rectangles */    unsigned long baseline; /* baseline of characters */   #ifdef HAVE_MMAP    unsigned long mmaped_size; /* if 0 - not mmaped: just free() mem */   #endif    void *mem; /* pointer to mmaped/malloced memory */    unsigned long chars; /* number of characters */
pike.git/src/modules/Image/font.c:553:   {    struct object *o;    struct image *img;    INT32 xsize=0,i,maxwidth2,j;    int *width_of;    p_wchar0 *to_write0;    p_wchar1 *to_write1;    p_wchar2 *to_write2;    int to_write_len;    INT32 c; -  struct font *this = (*(struct font **)(fp->current_storage)); +  struct font *this = (*(struct font **)(Pike_fp->current_storage));    if (!this)    error("font->write: no font loaded\n");       if (args==0)    {    push_string(make_shared_binary_string("",0));    args++;    }       maxwidth2=1;