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

version» Context lines:

pike.git/src/modules/Image/font.c:1: - /* $Id: font.c,v 1.67 2001/07/12 13:26:03 grubba Exp $ */ + /* $Id: font.c,v 1.68 2001/07/19 21:10:19 nilsson 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.67 2001/07/12 13:26:03 grubba Exp $ + **! $Id: font.c,v 1.68 2001/07/19 21:10:19 nilsson 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:539:   #endif      done:       pop_n_elems(args);    push_int(0);    return;   }      /* - **! method object write(string text,...) + **! method object write(string text, string ... more_text_lines)   **! Writes some text; thus creating an image object   **! that can be used as mask or as a complete picture.   **! returns an <ref>Image.Image</ref> object   **! arg string text, ...   **! One or more lines of text.   **! see also: text_extents, load, Image.Image->paste_mask, Image.Image->paste_alpha_color   */      void font_write(INT32 args)   {
pike.git/src/modules/Image/font.c:746:   void font_height(INT32 args)   {    pop_n_elems(args);    if (THIS)    push_int(THIS->height);    else    push_int(0);   }      /* - **! method array(int) text_extents(string text,...) + **! method array(int) text_extents(string text, string ... more_text_lines)   **! Calculate extents of a text-image,   **! that would be created by calling <ref>write</ref>   **! with the same arguments.   **! returns an array of width and height   **! arg string text, ...   **! One or more lines of text.   **! see also: write, height, baseline   */      void font_text_extents(INT32 args)