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

version» Context lines:

pike.git/src/modules/Image/font.c:424:   #endif    new_font->chars = num_chars;    new_font->xspacing_scale = 1.0;    new_font->yspacing_scale = 1.0;    new_font->justification = J_LEFT;    new_font->height=ntohl(fh->height);    new_font->baseline=ntohl(fh->baseline);       for (i=0; i<num_chars; i++)    { -  if (i*sizeof(INT32)<(size_t)size +  if ((i*sizeof(INT32) + OFFSETOF(file_head, o))<(size_t)size    && ntohl(fh->o[i])<(size_t)size    && ! ( ntohl(fh->o[i]) % 4) ) /* must be aligned */    {    ch = (struct char_head*)    (((char *)(fh)) + ntohl(fh->o[i]));    new_font->charinfo[i].width = ntohl(ch->width);    new_font->charinfo[i].spacing = ntohl(ch->spacing);    new_font->charinfo[i].pixels = ch->data;    }    else /* illegal <tm> offset or illegal align */