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

version» Context lines:

pike.git/src/modules/Image/font.c:1:   #include <config.h>      /*   **! module Image   **! class font   **!   **! Short technical documentation on a font file: + **! <pre>   **! struct file_head   **! {   **! unsigned INT32 cookie; - 0x464f4e54   **! unsigned INT32 version; - 1   **! unsigned INT32 chars; - number of chars   **! unsigned INT32 height; - height of font   **! unsigned INT32 baseline; - font baseline   **! unsigned INT32 o[1]; - position of char_head's   **! } *fh;   **! struct char_head   **! {   **! unsigned INT32 width; - width of this character   **! unsigned INT32 spacing; - spacing to next character   **! unsigned char data[1]; - pixmap data (1byte/pixel)   **! } *ch; -  + **! </pre>   **!   */    - /* $Id: font.c,v 1.7 1997/04/16 03:10:45 hubbe Exp $ */ + /* $Id: font.c,v 1.8 1997/04/18 06:47:22 mirar Exp $ */      #include "global.h"      #include <sys/types.h>   #include <sys/stat.h>      #ifdef HAVE_FCNTL_H   #include <fcntl.h>   #endif   
pike.git/src/modules/Image/font.c:461:   void font_height(INT32 args)   {    pop_n_elems(args);    if (THIS)    push_int(THIS->height);    else    push_int(0);   }      /* - **! method text_extents(string text,...) + **! method array(int) text_extents(string text,...)   **! 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)