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

version» Context lines:

pike.git/src/modules/Image/font.c:1:   /*   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id: font.c,v 1.84 2004/05/19 00:10:10 nilsson Exp $ + || $Id: font.c,v 1.85 2005/05/06 00:47:42 nilsson Exp $   */      #include "global.h"      #define SPACE_CHAR 'i'      extern const unsigned char image_default_font[];   #define IMAGE_DEFAULT_FONT_SIZE 30596      
pike.git/src/modules/Image/font.c:529:    ptrdiff_t to_write_len;    INT32 c;    struct font *this = (*(struct font **)(Pike_fp->current_storage));    ONERROR err;       if (!this)    Pike_error("font->write: no font loaded\n");       if (args==0)    { -  push_text(""); +  push_empty_string();    args=1;    }       maxwidth2=1;       width_of=(int *)xalloc((args+1)*sizeof(int));    SET_ONERROR(err, free, width_of);       for (j=0; j<args; j++)    {
pike.git/src/modules/Image/font.c:749:   void font_text_extents(INT32 args)   {    INT32 xsize,i,maxwidth2,j;       if (!THIS) Pike_error("font->text_extents: no font loaded\n");       maxwidth2=0;       if (args==0)    { -  push_text(""); +  push_empty_string();    args=1;    }       for (j=0; j<args; j++)    {    int max;    p_wchar0 *to_write0;    p_wchar1 *to_write1;    p_wchar2 *to_write2;    ptrdiff_t to_write_len;