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

version» Context lines:

pike.git/src/modules/Image/font.c:1: - /* $Id: font.c,v 1.64 2000/08/14 14:27:05 grubba Exp $ */ + /* $Id: font.c,v 1.65 2000/08/19 11:16:53 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.64 2000/08/14 14:27:05 grubba Exp $ + **! $Id: font.c,v 1.65 2000/08/19 11:16:53 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:261:    return this->charinfo[c].spacing*this->xspacing_scale;   }      static INLINE int char_width(struct font *this, INT32 c)   {    if(c==0x20 || c==0x20+128) return 0;    return this->charinfo[c].width;   }      #ifndef HAVE_MMAP - static INLINE int my_read(int from, void *t, size_t towrite) + static INLINE ptrdiff_t my_read(int from, void *t, size_t towrite)   {    ptrdiff_t res;    while((res = fd_read(from, t, towrite)) < 0)    {    switch(errno)    {    case EAGAIN: case EINTR:    continue;       default: