/*
 * 5799-WZQ (C) COPYRIGHT IBM CORPORATION 1986
 * LICENSED MATERIALS - PROPERTY OF IBM
 * REFER TO COPYRIGHT INSTRUCTIONS FORM NUMBER G120-2083
 */
/* $Header:wmFontTools.h 12.0$ */
/* $ACIS:wmFontTools.h 12.0$ */
/* $Source: /ibm/acis/usr/src/ibm/fdb_ca/h/RCS/wmFontTools.h,v $ */

#if !defined(lint) && !defined(LOCORE)  && defined(RCS_HDRS)
static char *rcsidwmFontTools = "$Header:wmFontTools.h 12.0$";
#endif

/*
 * wmfonts.h - C type defintions for processing wmfont information
 */
#ifndef _WMFONTS
#define _WMFONTS

/*------------define wm fonts values that are constant in this program----*/
#define wmMagic 509
#define wmRotation 0
#define wmFontRepresentationType 1 BitmapIcon
#define NIcons 128

/*----------------------wm vector type------------------------------------*/
typedef struct {
    int ns;		/* North to South measurement */
    int we;		/* West to East measurement */
} wmVectorType;

/*----------------per character info--------------------------------------*/
typedef struct {
    wmVectorType box;
    wmVectorType origin;
    wmVectorType spacing;
    raster_type r;
} wmCharType;

/*-------------------font global info------------------------------------*/
typedef struct {
    string fontname;
    string familyname;
    natural pointsize;
    natural facecodes;
    wmVectorType MaxNWtoOrigin;
    wmVectorType MaxNtoS;
    wmVectorType MaxWtoE;
    wmVectorType MaxWbase;
    wmVectorType MaxNewline;
    wmCharType chars[NIcons];
} wmFontType;

/*--------------print styles-------------------------------------------*/
#define wmPStyleRaster 1
				/* print image as a raster of *'s */
#define wmPStyleGrid 2
				/* print image as a raster with grid */
#define wmPStyleHex 3
				/* print image in hex */
#endif	_WMFONTS
