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.90 2006/03/06 08:47:36 peter Exp $ + || $Id: font.c,v 1.91 2008/05/04 00:34:22 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:792:    case 2:    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; + #ifdef PIKE_DEBUG    default:    Pike_fatal("Illegal shift size!\n"); -  + #endif    }    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);   }