File: 32pmifi.h

package info (click to toggle)
freetype 1.3.1-1
  • links: PTS
  • area: main
  • in suites: potato
  • size: 6,652 kB
  • ctags: 6,860
  • sloc: ansic: 47,576; pascal: 13,773; sh: 7,513; makefile: 786; cpp: 351; csh: 53; perl: 13
file content (79 lines) | stat: -rw-r--r-- 2,292 bytes parent folder | download | duplicates (13)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
/*********************************************************************\
* Module Name: 32PMIFI.H
*
* OS/2 Intelligent Font Interface
*
* Copyright (c) 1989,1994  IBM Corporation
* Copyright (c) 1989  Microsoft Corporation
*
\*********************************************************************/
#ifndef __32PMIFI_H__
#define __32PMIFI_H__

#define INCL_IFD

typedef PVOID HFF;      /* Font file handle */
typedef PVOID HFC;      /* Font context handle */

#ifndef INCL_GRE_FONTS
typedef ULONG GLYPH;    /* gi */
typedef ULONG *PGLYPH;  /* pgi */
#endif

#include "32fdstrc.h"   /* Font Driver structures */
#include "32ifimet.h"   /* Pifi Metrics */
#include "32fddef.h"    /* Font Driver entry definitions */


typedef struct _FDDISPATCH16 { /* fdisp */
        PVOID  FdLoadFontFile;
        PVOID  FdQueryFaces;
        PVOID  FdUnloadFontFile;
        PVOID  FdOpenFontContext;
        PVOID  FdSetFontContext;
        PVOID  FdCloseFontContext;
        PVOID  FdQueryFaceAttr;
        PVOID  FdQueryCharAttr;
        PVOID  FdClaimFontFile;
        PVOID  FdConvertFontFile;
} FDDISPATCH16;
typedef FDDISPATCH16 FAR *PFDDISPATCH16;


typedef struct _FDDISPATCH { /* fdisp */
        PFDLFF  FdLoadFontFile;
        PFDQF   FdQueryFaces;
        PFDUFF  FdUnloadFontFile;
        PFDOFC  FdOpenFontContext;
        PFDSFC  FdSetFontContext;
        PFDCFC  FdCloseFontContext;
        PFDQFA  FdQueryFaceAttr;
        PFDQCA  FdQueryCharAttr;
        PFDCLF  FdClaimFontFile;
        PFDCFF  FdConvertFontFile;
        PFDQFF  FdQueryFullFaces;
} FDDISPATCH;
typedef FDDISPATCH *PFDDISPATCH;

typedef struct _FDHEADER { /* fdhdr */
        ULONG   cbLength;               /* Length of FDHEADER */
        UCHAR   strId[16];              /* String 'OS/2 FONT DRIVER' */
        UCHAR   szTechnology[40];       /* Identifier of Font Driver technology */
        ULONG   ulVersion;              /* IFI version number (0x0100) */
        ULONG   ufDeviceCaps;           /* Capabilities of device */
        PFDDISPATCH pfddisp;
} FDHEADER;

typedef FDHEADER FAR *PFDHEADER;

#define OK     0
#define ERROR  -1

#define IFI_VERSION        10
#define IFI_VERSION20      20
#define IFI_VERSION21      21

#define FD_DISPATCH_COUNT  11
#define DISPATCHTABLE "FONT_DRIVER_DISPATCH_TABLE"

#endif