Added support for the take focus protocol.
[wine] / include / font.h
1 /*
2  * GDI font definitions
3  *
4  * Copyright 1994 Alexandre Julliard
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
19  */
20
21 #ifndef __WINE_FONT_H
22 #define __WINE_FONT_H
23
24 #include "gdi.h"
25
26 extern BOOL FONT_Init( UINT16* pTextCaps );
27 extern LPWSTR FONT_mbtowc(HDC, LPCSTR, INT, INT*, UINT*);
28
29 extern INT WineEngAddFontResourceEx(LPCWSTR, DWORD, PVOID);
30 extern GdiFont WineEngCreateFontInstance(DC*, HFONT);
31 extern BOOL WineEngDestroyFontInstance(HFONT handle);
32 extern DWORD WineEngEnumFonts(LPLOGFONTW, DEVICEFONTENUMPROC, LPARAM);
33 extern BOOL WineEngGetCharWidth(GdiFont, UINT, UINT, LPINT);
34 extern DWORD WineEngGetFontData(GdiFont, DWORD, DWORD, LPVOID, DWORD);
35 extern DWORD WineEngGetGlyphIndices(GdiFont font, LPCWSTR lpstr, INT count,
36                                     LPWORD pgi, DWORD flags);
37 extern DWORD WineEngGetGlyphOutline(GdiFont, UINT glyph, UINT format,
38                                     LPGLYPHMETRICS, DWORD buflen, LPVOID buf,
39                                     const MAT2*);
40 extern UINT WineEngGetOutlineTextMetrics(GdiFont, UINT, LPOUTLINETEXTMETRICW);
41 extern BOOL WineEngGetTextExtentPoint(GdiFont, LPCWSTR, INT, LPSIZE);
42 extern BOOL WineEngGetTextExtentPointI(GdiFont, const WORD *, INT, LPSIZE);
43 extern INT  WineEngGetTextFace(GdiFont, INT, LPWSTR);
44 extern BOOL WineEngGetTextMetrics(GdiFont, LPTEXTMETRICW);
45 extern BOOL WineEngInit(void);
46 extern BOOL WineEngRemoveFontResourceEx(LPCWSTR, DWORD, PVOID);
47
48 #endif /* __WINE_FONT_H */