source: trunk/include/win/font.h@ 1036

Last change on this file since 1036 was 4, checked in by ktk, 26 years ago

Import

File size: 2.1 KB
Line 
1/* $Id: font.h,v 1.1 1999-05-24 20:19:12 ktk Exp $ */
2
3/*
4 * GDI font definitions
5 *
6 * Copyright 1994 Alexandre Julliard
7 */
8
9#ifndef __WINE_FONT_H
10#define __WINE_FONT_H
11
12#include "gdi.h"
13
14#include "pshpack1.h"
15
16 /* GDI logical font object */
17typedef struct
18{
19 GDIOBJHDR header;
20 LOGFONT16 logfont WINE_PACKED;
21} FONTOBJ;
22
23typedef struct {
24 WORD dfVersion;
25 DWORD dfSize;
26 CHAR dfCopyright[60];
27 WORD dfType;
28 WORD dfPoints;
29 WORD dfVertRes;
30 WORD dfHorizRes;
31 WORD dfAscent;
32 WORD dfInternalLeading;
33 WORD dfExternalLeading;
34 BYTE dfItalic;
35 BYTE dfUnderline;
36 BYTE dfStrikeOut;
37 WORD dfWeight;
38 BYTE dfCharSet;
39 WORD dfPixWidth;
40 WORD dfPixHeight;
41 BYTE dfPitchAndFamily;
42 WORD dfAvgWidth;
43 WORD dfMaxWidth;
44 BYTE dfFirstChar;
45 BYTE dfLastChar;
46 BYTE dfDefaultChar;
47 BYTE dfBreakChar;
48 WORD dfWidthBytes;
49 DWORD dfDevice;
50 DWORD dfFace;
51 DWORD dfReserved;
52 CHAR szDeviceName[60]; /* FIXME: length unknown */
53 CHAR szFaceName[60]; /* dito */
54} FONTDIR16, *LPFONTDIR16;
55
56#include "poppack.h"
57
58#define FONTCACHE 32 /* dynamic font cache size */
59
60extern BOOL FONT_Init( UINT16* pTextCaps );
61extern INT16 FONT_GetObject16( FONTOBJ * font, INT16 count, LPSTR buffer );
62extern INT FONT_GetObjectA( FONTOBJ * font, INT count, LPSTR buffer );
63extern INT FONT_GetObjectW( FONTOBJ * font, INT count, LPSTR buffer );
64extern void FONT_LogFont32ATo16( const LOGFONTA* font32, LPLOGFONT16 font16 );
65extern void FONT_LogFont32WTo16( const LOGFONTW* font32, LPLOGFONT16 font16 );
66extern void FONT_LogFont16To32A( const LPLOGFONT16 font16, LPLOGFONTA font32 );
67extern void FONT_LogFont16To32W( const LPLOGFONT16 font16, LPLOGFONTW font32 );
68extern void FONT_TextMetric32Ato16(const LPTEXTMETRICA ptm32, LPTEXTMETRIC16 ptm16 );
69extern void FONT_TextMetric32Wto16(const LPTEXTMETRICW ptm32, LPTEXTMETRIC16 ptm16 );
70extern void FONT_TextMetric16to32A(const LPTEXTMETRIC16 ptm16, LPTEXTMETRICA ptm32 );
71extern void FONT_TextMetric16to32W(const LPTEXTMETRIC16 ptm16, LPTEXTMETRICW ptm32 );
72extern void FONT_TextMetric32Ato32W(const LPTEXTMETRICA ptm32A, LPTEXTMETRICW ptm32W );
73
74
75
76#endif /* __WINE_FONT_H */
Note: See TracBrowser for help on using the repository browser.