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

version» Context lines:

pike.git/src/modules/Image/font.c:1: - /* $Id: font.c,v 1.38 1998/05/04 16:28:40 mirar Exp $ */ + /* $Id: font.c,v 1.39 1998/06/03 13:21:32 grubba Exp $ */   #include "global.h"   #include <config.h>      #define SPACE_CHAR 'i'      /*   **! module Image   **! note - **! $Id: font.c,v 1.38 1998/05/04 16:28:40 mirar Exp $ + **! $Id: font.c,v 1.39 1998/06/03 13:21:32 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:329:   **!   **! method void create(string filename)   **! Loads a font file to this font object.   **! Similar to <ref>load</ref>().   */      void font_load(INT32 args);      void font_create(INT32 args)   { -  if (args) font_load(args); -  pop_n_elems(1); +  if (args) +  { +  font_load(args); +  pop_stack();    } -  + }      void font_load(INT32 args)   {    int fd;       if (args<1    || sp[-args].type!=T_STRING)    error("font->read: illegal or wrong number of arguments\n");       if (THIS)