ftp.nice.ch/pub/next/text/tex/teTeX/distrib/sources/teTeX-src-0.4.tar.gz#/teTeX-src-0.4/kpse-2.6/ps2pkm/ps2pk/pkout.h

This is pkout.h in view mode; [Download] [Up]

/* 
 * FILE:    pkout.h
 *
 * PURPOSE: interface to te PK output functions (pkfile.c)
 *
 * COMMENT: See the pktest.c example program how to use the PK functions.
 *
 * VERSION: Febr. 1992
 *          Dec. 1993
 *
 * AUTHOR:  Piet Tutelaers (rcpt@urc.tue.nl)
 */

#ifdef WORD16
typedef long INT32;
#else
typedef int  INT32;
#endif

/* A function for opening a pk file */
void pk_open(char *name);

/* A function for closing a pk file */
void pk_close();

/* A function for writing the preamble */
void pk_preamble(char *comment, /* comment string: source of font */
        float pointsize,        /* design size in points */
        INT32 checksum,         /* checksum */
        unsigned int h_res,     /* horizontal resolution (dpi) */
        unsigned int v_res);    /* vertical resolution (dpi) */

/* For packing a character */
void pk_char(int char_code, 	/* character code 0..255 */
        INT32 tfm_width,        /* TFM width of character */
        int h_escapement,       /* horizontal escapement in pixels */
   	unsigned int width, 	/* width of bounding box */
   	unsigned int height, 	/* height of bounding box */
   	int h_offset, 		/* horizontal offset to reference point */
   	int v_offset, 		/* vertical offset to reference point */
	int (*next_pixel)());	/* user's pixel generator */

/* A function for writing the postamble */
void pk_postamble(char *fontname, /* The real FontName from the afm */
		  char *encname,  /* The actual name, not the filename */
		  char *modename, /* If supplied---default "Unknown" */
		  int base_res,   /* Default 300.  Reset for other printers */
		  int h_res,	  /* Match against base_res for mag */
		  int v_res,	  /* Match against h_res for aspect_ratio */
		  float pointsize);/* Used for fontfacebyte calculation */

/* Here are some definitions to play with pixels */
#define BLACK	1
#define WHITE   0
#define OTHER(pixel) (pixel==BLACK? WHITE: BLACK)

/* For fatal errors */
void fatal(char *fmt, ...);

These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.