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   **! + **! 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>. + **! + **! other methods: <ref>baseline</ref>, + **! <ref>height</ref>, + **! <ref>set_xspacing_scale</ref>, + **! <ref>set_yspacing_scale</ref>, + **! <ref>text_extents</ref> + **! + **! note   **! 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>   **! -  + **! see also: Image, Image.image   */    - /* $Id: font.c,v 1.8 1997/04/18 06:47:22 mirar Exp $ */ + /* $Id: font.c,v 1.9 1997/04/19 12:33:47 mirar Exp $ */      #include "global.h"      #include <sys/types.h>   #include <sys/stat.h>      #ifdef HAVE_FCNTL_H   #include <fcntl.h>   #endif