summaryrefslogtreecommitdiffstats
path: root/private/mvdm/wow32/wgfont.h
blob: 82bcfa3c9c9ba485e0a273f7d9752a3a17f09606 (plain) (blame)
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
/*++ BUILD Version: 0001
 *
 *  WOW v1.0
 *
 *  Copyright (c) 1991, Microsoft Corporation
 *
 *  WGFONT.H
 *  WOW32 16-bit GDI API support
 *
 *  History:
 *  Created 07-Mar-1991 by Jeff Parsons (jeffpar)
--*/


/* Enumeration handler data
 */
typedef struct _FNTDATA {	/* fntdata */
    VPPROC  vpfnEnumFntProc;    // 16-bit enumeration function
    DWORD   dwUserFntParam;	// user param, if any
    HMEM16  hLogFont;		//
    VPVOID  vpLogFont;		// 16-bit storage for logical font
    HMEM16  hTextMetric;	//
    VPVOID  vpTextMetric;	// 16-bit storage for textmetric structure
    VPVOID  vpFaceName;     // 16bit far ptr - input to Enum Fonts & Families
} FNTDATA, *PFNTDATA;


/* Function prototypes
 */
ULONG FASTCALL WG32AddFontResource(PVDMFRAME pFrame);
ULONG FASTCALL WG32CreateFont(PVDMFRAME pFrame);
ULONG FASTCALL WG32CreateFontIndirect(PVDMFRAME pFrame);

INT	W32FontFunc(LPLOGFONT pLogFont,
		    LPTEXTMETRIC pTextMetrics, INT nFontType, PFNTDATA pFntData);

ULONG FASTCALL WG32EnumFonts(PVDMFRAME pFrame);
ULONG FASTCALL WG32GetAspectRatioFilter(PVDMFRAME pFrame);
ULONG FASTCALL WG32GetCharWidth(PVDMFRAME pFrame);
ULONG FASTCALL WG32RemoveFontResource(PVDMFRAME pFrame);

ULONG W32EnumFontHandler( PVDMFRAME pFrame, BOOL fEnumFontFamilies );