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

version» Context lines:

pike.git/src/modules/Image/font.c:1: - /* $Id: font.c,v 1.52 1999/06/18 19:19:21 mirar Exp $ */ + /* $Id: font.c,v 1.53 1999/06/19 20:24:45 hubbe Exp $ */   #include "global.h"      #define SPACE_CHAR 'i'      extern unsigned char * image_default_font;   #define IMAGE_DEFAULT_FONT_SIZE 30596      /*   **! module Image   **! note - **! $Id: font.c,v 1.52 1999/06/18 19:19:21 mirar Exp $ + **! $Id: font.c,v 1.53 1999/06/19 20:24:45 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:897:   {    ADD_STORAGE(struct font*);       /* function(string:object|int) */    ADD_FUNCTION("load",font_load,tFunc(tStr,tOr(tObj,tInt)),0);       /* function(void|string:void) */    ADD_FUNCTION("create",font_create,tFunc(tOr(tVoid,tStr),tVoid),0);       /* function(string:object) */ -  ADD_FUNCTION("write",font_write,tFuncV(,tStr,tObj),0); +  ADD_FUNCTION("write",font_write,tFuncV(tNone,tStr,tObj),0);       /* function(:int) */ -  ADD_FUNCTION("height",font_height,tFunc(,tInt),0); +  ADD_FUNCTION("height",font_height,tFunc(tNone,tInt),0);       /* function(:int) */ -  ADD_FUNCTION("baseline",font_baseline,tFunc(,tInt),0); +  ADD_FUNCTION("baseline",font_baseline,tFunc(tNone,tInt),0);       /* function(string ...:array(int)) */ -  ADD_FUNCTION("extents",font_text_extents,tFuncV(,tStr,tArr(tInt)),0); +  ADD_FUNCTION("extents",font_text_extents,tFuncV(tNone,tStr,tArr(tInt)),0);       /* function(string ...:array(int)) */ -  ADD_FUNCTION("text_extents",font_text_extents,tFuncV(,tStr,tArr(tInt)),0); +  ADD_FUNCTION("text_extents",font_text_extents,tFuncV(tNone,tStr,tArr(tInt)),0);       /* function(float:void) */    ADD_FUNCTION("set_x_spacing",font_set_xspacing_scale,tFunc(tFlt,tVoid),0);       /* function(float:void) */    ADD_FUNCTION("set_y_spacing",font_set_yspacing_scale,tFunc(tFlt,tVoid),0);       /* function(void:void) */    ADD_FUNCTION("center", font_set_center,tFunc(tVoid,tVoid), 0);    /* function(void:void) */