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

version» Context lines:

pike.git/src/modules/Image/font.c:1: - /* $Id: font.c,v 1.41 1998/11/03 08:38:05 per Exp $ */ + /* $Id: font.c,v 1.42 1999/02/01 02:43:12 hubbe Exp $ */   #include "global.h"   #include <config.h>      #define SPACE_CHAR 'i'      /*   **! module Image   **! note - **! $Id: font.c,v 1.41 1998/11/03 08:38:05 per Exp $ + **! $Id: font.c,v 1.42 1999/02/01 02:43:12 hubbe 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:874:   int load(string filename); // load font file, true is success   object write(string text); // new image object   int height(); // font heigth   int baseline(); // font baseline      */      void init_font_programs(void)   {    start_new_program(); -  add_storage(sizeof(struct font*)); +  ADD_STORAGE(struct font*);       add_function("load",font_load,    "function(string:object|int)",0);       add_function("create",font_create,    "function(void|string:void)",0);       add_function("write",font_write,    "function(string:object)",0);