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

version» Context lines:

pike.git/src/modules/Image/font.c:1: - /* $Id: font.c,v 1.71 2002/05/11 00:27:03 nilsson Exp $ */ + /* $Id: font.c,v 1.72 2002/08/15 14:50:25 marcus Exp $ */   #include "global.h"      #define SPACE_CHAR 'i'      extern unsigned char * image_default_font;   #define IMAGE_DEFAULT_FONT_SIZE 30596         /*! @module Image    */
pike.git/src/modules/Image/font.c:574:    if (to_write2[i] < (unsigned INT32)this->chars)    {    if (xsize+char_width(this,to_write2[i]) > max)    max=xsize+char_width(this,to_write2[i]);    xsize += char_space(this,to_write2[i]);    if (xsize > max) max=xsize;    }    }    break;    default: -  fatal("Illegal shift size!\n"); +  Pike_fatal("Illegal shift size!\n");    }    width_of[j]=max;    if (max>maxwidth2) maxwidth2=max;    }       o = clone_object(image_program,0);    img = ((struct image*)o->storage);    img->xsize = maxwidth2;    if(args>1)    img->ysize = DOUBLE_TO_INT(this->height+
pike.git/src/modules/Image/font.c:670:    (img->xsize*DOUBLE_TO_INT(j*this->height*    this->yspacing_scale)),    img->xsize,    this->height);    xsize += char_space(this, c);    }    }    THREADS_DISALLOW();    break;    default: -  fatal("Illegal shift size!\n"); +  Pike_fatal("Illegal shift size!\n");    }    }    free(width_of);       pop_n_elems(args);    push_object(o);   }      /*! @decl int height()    *! Returns the font height.
pike.git/src/modules/Image/font.c:773:    to_write2 = STR2(sp[j-args].u.string);    for (i = 0; i < to_write_len; i++)    {    if (xsize+char_width(THIS,to_write2[i]) > max)    max=xsize+char_width(THIS,to_write2[i]);    xsize += char_space(THIS,to_write2[i]);    if (xsize > max) max=xsize;    }    break;    default: -  fatal("Illegal shift size!\n"); +  Pike_fatal("Illegal shift size!\n");    }    if (max>maxwidth2) maxwidth2=max;    }       pop_n_elems(args);    push_int(maxwidth2);    push_int64(DO_NOT_WARN((INT64)(args * THIS->height * THIS->yspacing_scale)));    f_aggregate(2);   }