gdi32: Make GdiFont a proper C structure, with GdiFont* being a pointer.

oldstable
Dmitry Timoshkov 2006-09-28 15:11:06 +09:00 committed by Alexandre Julliard
parent 57a04062fe
commit ddfba2b459
2 changed files with 70 additions and 70 deletions

View File

@ -248,7 +248,7 @@ typedef struct {
struct list entry; struct list entry;
char *file_name; char *file_name;
INT index; INT index;
GdiFont font; GdiFont *font;
} CHILD_FONT; } CHILD_FONT;
struct tagGdiFont { struct tagGdiFont {
@ -273,7 +273,7 @@ struct tagGdiFont {
DWORD total_kern_pairs; DWORD total_kern_pairs;
KERNINGPAIR *kern_pairs; KERNINGPAIR *kern_pairs;
FONTSIGNATURE fs; FONTSIGNATURE fs;
GdiFont base_font; GdiFont *base_font;
struct list child_fonts; struct list child_fonts;
LONG ppem; LONG ppem;
}; };
@ -1867,9 +1867,9 @@ static LONG calc_ppem_for_height(FT_Face ft_face, LONG height)
return ppem; return ppem;
} }
static LONG load_VDMX(GdiFont, LONG); static LONG load_VDMX(GdiFont*, LONG);
static FT_Face OpenFontFile(GdiFont font, char *file, FT_Long face_index, LONG width, LONG height) static FT_Face OpenFontFile(GdiFont *font, char *file, FT_Long face_index, LONG width, LONG height)
{ {
FT_Error err; FT_Error err;
FT_Face ft_face; FT_Face ft_face;
@ -1935,9 +1935,9 @@ static int get_nearest_charset(Face *face, int *cp)
return DEFAULT_CHARSET; return DEFAULT_CHARSET;
} }
static GdiFont alloc_font(void) static GdiFont *alloc_font(void)
{ {
GdiFont ret = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(*ret)); GdiFont *ret = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(*ret));
ret->gmsize = INIT_GM_SIZE; ret->gmsize = INIT_GM_SIZE;
ret->gm = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, ret->gm = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY,
ret->gmsize * sizeof(*ret->gm)); ret->gmsize * sizeof(*ret->gm));
@ -1950,7 +1950,7 @@ static GdiFont alloc_font(void)
return ret; return ret;
} }
static void free_font(GdiFont font) static void free_font(GdiFont *font)
{ {
struct list *cursor, *cursor2; struct list *cursor, *cursor2;
@ -2008,7 +2008,7 @@ typedef struct {
BYTE endsz; BYTE endsz;
} VDMX_group; } VDMX_group;
static LONG load_VDMX(GdiFont font, LONG height) static LONG load_VDMX(GdiFont *font, LONG height)
{ {
WORD hdr[3], tmp; WORD hdr[3], tmp;
VDMX_group group; VDMX_group group;
@ -2136,7 +2136,7 @@ static LONG load_VDMX(GdiFont font, LONG height)
return ppem; return ppem;
} }
static BOOL fontcmp(GdiFont font, FONT_DESC *fd) static BOOL fontcmp(GdiFont *font, FONT_DESC *fd)
{ {
if(font->font_desc.hash != fd->hash) return TRUE; if(font->font_desc.hash != fd->hash) return TRUE;
if(memcmp(&font->font_desc.matrix, &fd->matrix, sizeof(fd->matrix))) return TRUE; if(memcmp(&font->font_desc.matrix, &fd->matrix, sizeof(fd->matrix))) return TRUE;
@ -2170,9 +2170,9 @@ static void calc_hash(FONT_DESC *pfd)
return; return;
} }
static GdiFont find_in_cache(HFONT hfont, LOGFONTW *plf, XFORM *pxf, BOOL can_use_bitmap) static GdiFont *find_in_cache(HFONT hfont, LOGFONTW *plf, XFORM *pxf, BOOL can_use_bitmap)
{ {
GdiFont ret; GdiFont *ret;
FONT_DESC fd; FONT_DESC fd;
HFONTLIST *hflist; HFONTLIST *hflist;
struct list *font_elem_ptr, *hfontlist_elem_ptr; struct list *font_elem_ptr, *hfontlist_elem_ptr;
@ -2223,7 +2223,7 @@ static GdiFont find_in_cache(HFONT hfont, LOGFONTW *plf, XFORM *pxf, BOOL can_us
/************************************************************* /*************************************************************
* create_child_font_list * create_child_font_list
*/ */
static BOOL create_child_font_list(GdiFont font) static BOOL create_child_font_list(GdiFont *font)
{ {
BOOL ret = FALSE; BOOL ret = FALSE;
SYSTEM_LINKS *font_link; SYSTEM_LINKS *font_link;
@ -2255,9 +2255,9 @@ static BOOL create_child_font_list(GdiFont font)
* WineEngCreateFontInstance * WineEngCreateFontInstance
* *
*/ */
GdiFont WineEngCreateFontInstance(DC *dc, HFONT hfont) GdiFont *WineEngCreateFontInstance(DC *dc, HFONT hfont)
{ {
GdiFont ret; GdiFont *ret;
Face *face, *best, *best_bitmap; Face *face, *best, *best_bitmap;
Family *family, *last_resort_family; Family *family, *last_resort_family;
struct list *family_elem_ptr, *face_elem_ptr; struct list *family_elem_ptr, *face_elem_ptr;
@ -2535,7 +2535,7 @@ found:
static void dump_gdi_font_list(void) static void dump_gdi_font_list(void)
{ {
GdiFont gdiFont; GdiFont *gdiFont;
struct list *elem_ptr; struct list *elem_ptr;
TRACE("---------- gdiFont Cache ----------\n"); TRACE("---------- gdiFont Cache ----------\n");
@ -2561,7 +2561,7 @@ static void dump_gdi_font_list(void)
*/ */
BOOL WineEngDestroyFontInstance(HFONT handle) BOOL WineEngDestroyFontInstance(HFONT handle)
{ {
GdiFont gdiFont; GdiFont *gdiFont;
HFONTLIST *hflist; HFONTLIST *hflist;
BOOL ret = FALSE; BOOL ret = FALSE;
struct list *font_elem_ptr, *hfontlist_elem_ptr; struct list *font_elem_ptr, *hfontlist_elem_ptr;
@ -2625,7 +2625,7 @@ static void GetEnumStructs(Face *face, LPENUMLOGFONTEXW pelf,
OUTLINETEXTMETRICW *potm = NULL; OUTLINETEXTMETRICW *potm = NULL;
UINT size; UINT size;
TEXTMETRICW tm, *ptm; TEXTMETRICW tm, *ptm;
GdiFont font = alloc_font(); GdiFont *font = alloc_font();
LONG width, height; LONG width, height;
if(face->scalable) { if(face->scalable) {
@ -2866,7 +2866,7 @@ static BOOL codepage_sets_default_used(UINT codepage)
} }
} }
static FT_UInt get_glyph_index(GdiFont font, UINT glyph) static FT_UInt get_glyph_index(GdiFont *font, UINT glyph)
{ {
if(font->ft_face->charmap->encoding == FT_ENCODING_NONE) { if(font->ft_face->charmap->encoding == FT_ENCODING_NONE) {
WCHAR wc = (WCHAR)glyph; WCHAR wc = (WCHAR)glyph;
@ -2896,7 +2896,7 @@ static FT_UInt get_glyph_index(GdiFont font, UINT glyph)
* *
* FIXME: add support for GGI_MARK_NONEXISTING_GLYPHS * FIXME: add support for GGI_MARK_NONEXISTING_GLYPHS
*/ */
DWORD WineEngGetGlyphIndices(GdiFont font, LPCWSTR lpstr, INT count, DWORD WineEngGetGlyphIndices(GdiFont *font, LPCWSTR lpstr, INT count,
LPWORD pgi, DWORD flags) LPWORD pgi, DWORD flags)
{ {
int i; int i;
@ -2929,7 +2929,7 @@ DWORD WineEngGetGlyphIndices(GdiFont font, LPCWSTR lpstr, INT count,
* question rather than an HDC. * question rather than an HDC.
* *
*/ */
DWORD WineEngGetGlyphOutline(GdiFont font, UINT glyph, UINT format, DWORD WineEngGetGlyphOutline(GdiFont *font, UINT glyph, UINT format,
LPGLYPHMETRICS lpgm, DWORD buflen, LPVOID buf, LPGLYPHMETRICS lpgm, DWORD buflen, LPVOID buf,
const MAT2* lpmat) const MAT2* lpmat)
{ {
@ -3383,7 +3383,7 @@ DWORD WineEngGetGlyphOutline(GdiFont font, UINT glyph, UINT format,
return needed; return needed;
} }
static BOOL get_bitmap_text_metrics(GdiFont font) static BOOL get_bitmap_text_metrics(GdiFont *font)
{ {
FT_Face ft_face = font->ft_face; FT_Face ft_face = font->ft_face;
#ifdef HAVE_FREETYPE_FTWINFNT_H #ifdef HAVE_FREETYPE_FTWINFNT_H
@ -3452,7 +3452,7 @@ static BOOL get_bitmap_text_metrics(GdiFont font)
* WineEngGetTextMetrics * WineEngGetTextMetrics
* *
*/ */
BOOL WineEngGetTextMetrics(GdiFont font, LPTEXTMETRICW ptm) BOOL WineEngGetTextMetrics(GdiFont *font, LPTEXTMETRICW ptm)
{ {
if(!font->potm) { if(!font->potm) {
if(!WineEngGetOutlineTextMetrics(font, 0, NULL)) if(!WineEngGetOutlineTextMetrics(font, 0, NULL))
@ -3473,7 +3473,7 @@ BOOL WineEngGetTextMetrics(GdiFont font, LPTEXTMETRICW ptm)
* WineEngGetOutlineTextMetrics * WineEngGetOutlineTextMetrics
* *
*/ */
UINT WineEngGetOutlineTextMetrics(GdiFont font, UINT cbSize, UINT WineEngGetOutlineTextMetrics(GdiFont *font, UINT cbSize,
OUTLINETEXTMETRICW *potm) OUTLINETEXTMETRICW *potm)
{ {
FT_Face ft_face = font->ft_face; FT_Face ft_face = font->ft_face;
@ -3719,7 +3719,7 @@ end:
return ret; return ret;
} }
static BOOL load_child_font(GdiFont font, CHILD_FONT *child) static BOOL load_child_font(GdiFont *font, CHILD_FONT *child)
{ {
HFONTLIST *hfontlist; HFONTLIST *hfontlist;
child->font = alloc_font(); child->font = alloc_font();
@ -3741,7 +3741,7 @@ static BOOL load_child_font(GdiFont font, CHILD_FONT *child)
return TRUE; return TRUE;
} }
static BOOL get_glyph_index_linked(GdiFont font, UINT c, GdiFont *linked_font, FT_UInt *glyph) static BOOL get_glyph_index_linked(GdiFont *font, UINT c, GdiFont **linked_font, FT_UInt *glyph)
{ {
FT_UInt g; FT_UInt g;
CHILD_FONT *child_font; CHILD_FONT *child_font;
@ -3777,13 +3777,13 @@ static BOOL get_glyph_index_linked(GdiFont font, UINT c, GdiFont *linked_font, F
* WineEngGetCharWidth * WineEngGetCharWidth
* *
*/ */
BOOL WineEngGetCharWidth(GdiFont font, UINT firstChar, UINT lastChar, BOOL WineEngGetCharWidth(GdiFont *font, UINT firstChar, UINT lastChar,
LPINT buffer) LPINT buffer)
{ {
UINT c; UINT c;
GLYPHMETRICS gm; GLYPHMETRICS gm;
FT_UInt glyph_index; FT_UInt glyph_index;
GdiFont linked_font; GdiFont *linked_font;
TRACE("%p, %d, %d, %p\n", font, firstChar, lastChar, buffer); TRACE("%p, %d, %d, %p\n", font, firstChar, lastChar, buffer);
@ -3800,13 +3800,13 @@ BOOL WineEngGetCharWidth(GdiFont font, UINT firstChar, UINT lastChar,
* WineEngGetCharABCWidths * WineEngGetCharABCWidths
* *
*/ */
BOOL WineEngGetCharABCWidths(GdiFont font, UINT firstChar, UINT lastChar, BOOL WineEngGetCharABCWidths(GdiFont *font, UINT firstChar, UINT lastChar,
LPABC buffer) LPABC buffer)
{ {
UINT c; UINT c;
GLYPHMETRICS gm; GLYPHMETRICS gm;
FT_UInt glyph_index; FT_UInt glyph_index;
GdiFont linked_font; GdiFont *linked_font;
TRACE("%p, %d, %d, %p\n", font, firstChar, lastChar, buffer); TRACE("%p, %d, %d, %p\n", font, firstChar, lastChar, buffer);
@ -3829,13 +3829,13 @@ BOOL WineEngGetCharABCWidths(GdiFont font, UINT firstChar, UINT lastChar,
* WineEngGetCharABCWidthsI * WineEngGetCharABCWidthsI
* *
*/ */
BOOL WineEngGetCharABCWidthsI(GdiFont font, UINT firstChar, UINT count, LPWORD pgi, BOOL WineEngGetCharABCWidthsI(GdiFont *font, UINT firstChar, UINT count, LPWORD pgi,
LPABC buffer) LPABC buffer)
{ {
UINT c; UINT c;
GLYPHMETRICS gm; GLYPHMETRICS gm;
FT_UInt glyph_index; FT_UInt glyph_index;
GdiFont linked_font; GdiFont *linked_font;
if(!FT_IS_SCALABLE(font->ft_face)) if(!FT_IS_SCALABLE(font->ft_face))
return FALSE; return FALSE;
@ -3867,7 +3867,7 @@ BOOL WineEngGetCharABCWidthsI(GdiFont font, UINT firstChar, UINT count, LPWORD p
* WineEngGetTextExtentExPoint * WineEngGetTextExtentExPoint
* *
*/ */
BOOL WineEngGetTextExtentExPoint(GdiFont font, LPCWSTR wstr, INT count, BOOL WineEngGetTextExtentExPoint(GdiFont *font, LPCWSTR wstr, INT count,
INT max_ext, LPINT pnfit, LPINT dxs, LPSIZE size) INT max_ext, LPINT pnfit, LPINT dxs, LPSIZE size)
{ {
INT idx; INT idx;
@ -3875,7 +3875,7 @@ BOOL WineEngGetTextExtentExPoint(GdiFont font, LPCWSTR wstr, INT count,
GLYPHMETRICS gm; GLYPHMETRICS gm;
TEXTMETRICW tm; TEXTMETRICW tm;
FT_UInt glyph_index; FT_UInt glyph_index;
GdiFont linked_font; GdiFont *linked_font;
TRACE("%p, %s, %d, %d, %p\n", font, debugstr_wn(wstr, count), count, TRACE("%p, %s, %d, %d, %p\n", font, debugstr_wn(wstr, count), count,
max_ext, size); max_ext, size);
@ -3908,7 +3908,7 @@ BOOL WineEngGetTextExtentExPoint(GdiFont font, LPCWSTR wstr, INT count,
* WineEngGetTextExtentPointI * WineEngGetTextExtentPointI
* *
*/ */
BOOL WineEngGetTextExtentPointI(GdiFont font, const WORD *indices, INT count, BOOL WineEngGetTextExtentPointI(GdiFont *font, const WORD *indices, INT count,
LPSIZE size) LPSIZE size)
{ {
INT idx; INT idx;
@ -3935,7 +3935,7 @@ BOOL WineEngGetTextExtentPointI(GdiFont font, const WORD *indices, INT count,
* WineEngGetFontData * WineEngGetFontData
* *
*/ */
DWORD WineEngGetFontData(GdiFont font, DWORD table, DWORD offset, LPVOID buf, DWORD WineEngGetFontData(GdiFont *font, DWORD table, DWORD offset, LPVOID buf,
DWORD cbData) DWORD cbData)
{ {
FT_Face ft_face = font->ft_face; FT_Face ft_face = font->ft_face;
@ -4013,7 +4013,7 @@ DWORD WineEngGetFontData(GdiFont font, DWORD table, DWORD offset, LPVOID buf,
* WineEngGetTextFace * WineEngGetTextFace
* *
*/ */
INT WineEngGetTextFace(GdiFont font, INT count, LPWSTR str) INT WineEngGetTextFace(GdiFont *font, INT count, LPWSTR str)
{ {
if(str) { if(str) {
lstrcpynW(str, font->name, count); lstrcpynW(str, font->name, count);
@ -4022,7 +4022,7 @@ INT WineEngGetTextFace(GdiFont font, INT count, LPWSTR str)
return strlenW(font->name) + 1; return strlenW(font->name) + 1;
} }
UINT WineEngGetTextCharsetInfo(GdiFont font, LPFONTSIGNATURE fs, DWORD flags) UINT WineEngGetTextCharsetInfo(GdiFont *font, LPFONTSIGNATURE fs, DWORD flags)
{ {
if (fs) memcpy(fs, &font->fs, sizeof(FONTSIGNATURE)); if (fs) memcpy(fs, &font->fs, sizeof(FONTSIGNATURE));
return font->charset; return font->charset;
@ -4030,7 +4030,7 @@ UINT WineEngGetTextCharsetInfo(GdiFont font, LPFONTSIGNATURE fs, DWORD flags)
BOOL WineEngGetLinkedHFont(DC *dc, WCHAR c, HFONT *new_hfont, UINT *glyph) BOOL WineEngGetLinkedHFont(DC *dc, WCHAR c, HFONT *new_hfont, UINT *glyph)
{ {
GdiFont font = dc->gdiFont, linked_font; GdiFont *font = dc->gdiFont, *linked_font;
struct list *first_hfont; struct list *first_hfont;
BOOL ret; BOOL ret;
@ -4149,7 +4149,7 @@ struct TT_kern_pair
short value; short value;
}; };
static DWORD parse_format0_kern_subtable(GdiFont font, static DWORD parse_format0_kern_subtable(GdiFont *font,
const struct TT_format0_kern_subtable *tt_f0_ks, const struct TT_format0_kern_subtable *tt_f0_ks,
const USHORT *glyph_to_char, const USHORT *glyph_to_char,
KERNINGPAIR *kern_pair, DWORD cPairs) KERNINGPAIR *kern_pair, DWORD cPairs)
@ -4199,7 +4199,7 @@ static DWORD parse_format0_kern_subtable(GdiFont font,
return nPairs; return nPairs;
} }
DWORD WineEngGetKerningPairs(GdiFont font, DWORD cPairs, KERNINGPAIR *kern_pair) DWORD WineEngGetKerningPairs(GdiFont *font, DWORD cPairs, KERNINGPAIR *kern_pair)
{ {
DWORD length; DWORD length;
void *buf; void *buf;
@ -4347,7 +4347,7 @@ BOOL WineEngInit(void)
{ {
return FALSE; return FALSE;
} }
GdiFont WineEngCreateFontInstance(DC *dc, HFONT hfont) GdiFont *WineEngCreateFontInstance(DC *dc, HFONT hfont)
{ {
return NULL; return NULL;
} }
@ -4361,13 +4361,13 @@ DWORD WineEngEnumFonts(LPLOGFONTW plf, FONTENUMPROCW proc, LPARAM lparam)
return 1; return 1;
} }
DWORD WineEngGetGlyphIndices(GdiFont font, LPCWSTR lpstr, INT count, DWORD WineEngGetGlyphIndices(GdiFont *font, LPCWSTR lpstr, INT count,
LPWORD pgi, DWORD flags) LPWORD pgi, DWORD flags)
{ {
return GDI_ERROR; return GDI_ERROR;
} }
DWORD WineEngGetGlyphOutline(GdiFont font, UINT glyph, UINT format, DWORD WineEngGetGlyphOutline(GdiFont *font, UINT glyph, UINT format,
LPGLYPHMETRICS lpgm, DWORD buflen, LPVOID buf, LPGLYPHMETRICS lpgm, DWORD buflen, LPVOID buf,
const MAT2* lpmat) const MAT2* lpmat)
{ {
@ -4375,62 +4375,62 @@ DWORD WineEngGetGlyphOutline(GdiFont font, UINT glyph, UINT format,
return GDI_ERROR; return GDI_ERROR;
} }
BOOL WineEngGetTextMetrics(GdiFont font, LPTEXTMETRICW ptm) BOOL WineEngGetTextMetrics(GdiFont *font, LPTEXTMETRICW ptm)
{ {
ERR("called but we don't have FreeType\n"); ERR("called but we don't have FreeType\n");
return FALSE; return FALSE;
} }
UINT WineEngGetOutlineTextMetrics(GdiFont font, UINT cbSize, UINT WineEngGetOutlineTextMetrics(GdiFont *font, UINT cbSize,
OUTLINETEXTMETRICW *potm) OUTLINETEXTMETRICW *potm)
{ {
ERR("called but we don't have FreeType\n"); ERR("called but we don't have FreeType\n");
return 0; return 0;
} }
BOOL WineEngGetCharWidth(GdiFont font, UINT firstChar, UINT lastChar, BOOL WineEngGetCharWidth(GdiFont *font, UINT firstChar, UINT lastChar,
LPINT buffer) LPINT buffer)
{ {
ERR("called but we don't have FreeType\n"); ERR("called but we don't have FreeType\n");
return FALSE; return FALSE;
} }
BOOL WineEngGetCharABCWidths(GdiFont font, UINT firstChar, UINT lastChar, BOOL WineEngGetCharABCWidths(GdiFont *font, UINT firstChar, UINT lastChar,
LPABC buffer) LPABC buffer)
{ {
ERR("called but we don't have FreeType\n"); ERR("called but we don't have FreeType\n");
return FALSE; return FALSE;
} }
BOOL WineEngGetCharABCWidthsI(GdiFont font, UINT firstChar, UINT count, LPWORD pgi, BOOL WineEngGetCharABCWidthsI(GdiFont *font, UINT firstChar, UINT count, LPWORD pgi,
LPABC buffer) LPABC buffer)
{ {
ERR("called but we don't have FreeType\n"); ERR("called but we don't have FreeType\n");
return FALSE; return FALSE;
} }
BOOL WineEngGetTextExtentExPoint(GdiFont font, LPCWSTR wstr, INT count, BOOL WineEngGetTextExtentExPoint(GdiFont *font, LPCWSTR wstr, INT count,
INT max_ext, LPINT nfit, LPINT dx, LPSIZE size) INT max_ext, LPINT nfit, LPINT dx, LPSIZE size)
{ {
ERR("called but we don't have FreeType\n"); ERR("called but we don't have FreeType\n");
return FALSE; return FALSE;
} }
BOOL WineEngGetTextExtentPointI(GdiFont font, const WORD *indices, INT count, BOOL WineEngGetTextExtentPointI(GdiFont *font, const WORD *indices, INT count,
LPSIZE size) LPSIZE size)
{ {
ERR("called but we don't have FreeType\n"); ERR("called but we don't have FreeType\n");
return FALSE; return FALSE;
} }
DWORD WineEngGetFontData(GdiFont font, DWORD table, DWORD offset, LPVOID buf, DWORD WineEngGetFontData(GdiFont *font, DWORD table, DWORD offset, LPVOID buf,
DWORD cbData) DWORD cbData)
{ {
ERR("called but we don't have FreeType\n"); ERR("called but we don't have FreeType\n");
return GDI_ERROR; return GDI_ERROR;
} }
INT WineEngGetTextFace(GdiFont font, INT count, LPWSTR str) INT WineEngGetTextFace(GdiFont *font, INT count, LPWSTR str)
{ {
ERR("called but we don't have FreeType\n"); ERR("called but we don't have FreeType\n");
return 0; return 0;
@ -4448,7 +4448,7 @@ INT WineEngRemoveFontResourceEx(LPCWSTR file, DWORD flags, PVOID pdv)
return TRUE; return TRUE;
} }
UINT WineEngGetTextCharsetInfo(GdiFont font, LPFONTSIGNATURE fs, DWORD flags) UINT WineEngGetTextCharsetInfo(GdiFont *font, LPFONTSIGNATURE fs, DWORD flags)
{ {
FIXME(":stub\n"); FIXME(":stub\n");
return DEFAULT_CHARSET; return DEFAULT_CHARSET;
@ -4475,7 +4475,7 @@ BOOL WINAPI GetRasterizerCaps( LPRASTERIZER_STATUS lprs, UINT cbNumBytes)
return TRUE; return TRUE;
} }
DWORD WineEngGetKerningPairs(GdiFont font, DWORD cPairs, KERNINGPAIR *kern_pair) DWORD WineEngGetKerningPairs(GdiFont *font, DWORD cPairs, KERNINGPAIR *kern_pair)
{ {
ERR("called but we don't have FreeType\n"); ERR("called but we don't have FreeType\n");
return 0; return 0;

View File

@ -205,7 +205,7 @@ typedef struct tagGdiPath
BOOL newStroke; BOOL newStroke;
} GdiPath; } GdiPath;
typedef struct tagGdiFont *GdiFont; typedef struct tagGdiFont GdiFont;
struct saved_visrgn struct saved_visrgn
{ {
@ -248,7 +248,7 @@ typedef struct tagDC
HANDLE hDevice; HANDLE hDevice;
HPALETTE hPalette; HPALETTE hPalette;
GdiFont gdiFont; GdiFont *gdiFont;
GdiPath path; GdiPath path;
WORD ROPmode; WORD ROPmode;
@ -362,28 +362,28 @@ extern HENHMETAFILE EMF_Create_HENHMETAFILE(ENHMETAHEADER *emh, BOOL on_disk );
/* freetype.c */ /* freetype.c */
extern INT WineEngAddFontResourceEx(LPCWSTR, DWORD, PVOID); extern INT WineEngAddFontResourceEx(LPCWSTR, DWORD, PVOID);
extern GdiFont WineEngCreateFontInstance(DC*, HFONT); extern GdiFont* WineEngCreateFontInstance(DC*, HFONT);
extern BOOL WineEngDestroyFontInstance(HFONT handle); extern BOOL WineEngDestroyFontInstance(HFONT handle);
extern DWORD WineEngEnumFonts(LPLOGFONTW, FONTENUMPROCW, LPARAM); extern DWORD WineEngEnumFonts(LPLOGFONTW, FONTENUMPROCW, LPARAM);
extern BOOL WineEngGetCharABCWidths(GdiFont font, UINT firstChar, extern BOOL WineEngGetCharABCWidths(GdiFont *font, UINT firstChar,
UINT lastChar, LPABC buffer); UINT lastChar, LPABC buffer);
extern BOOL WineEngGetCharABCWidthsI(GdiFont font, UINT firstChar, extern BOOL WineEngGetCharABCWidthsI(GdiFont *font, UINT firstChar,
UINT count, LPWORD pgi, LPABC buffer); UINT count, LPWORD pgi, LPABC buffer);
extern BOOL WineEngGetCharWidth(GdiFont, UINT, UINT, LPINT); extern BOOL WineEngGetCharWidth(GdiFont*, UINT, UINT, LPINT);
extern DWORD WineEngGetFontData(GdiFont, DWORD, DWORD, LPVOID, DWORD); extern DWORD WineEngGetFontData(GdiFont*, DWORD, DWORD, LPVOID, DWORD);
extern DWORD WineEngGetGlyphIndices(GdiFont font, LPCWSTR lpstr, INT count, extern DWORD WineEngGetGlyphIndices(GdiFont *font, LPCWSTR lpstr, INT count,
LPWORD pgi, DWORD flags); LPWORD pgi, DWORD flags);
extern DWORD WineEngGetGlyphOutline(GdiFont, UINT glyph, UINT format, extern DWORD WineEngGetGlyphOutline(GdiFont*, UINT glyph, UINT format,
LPGLYPHMETRICS, DWORD buflen, LPVOID buf, LPGLYPHMETRICS, DWORD buflen, LPVOID buf,
const MAT2*); const MAT2*);
extern DWORD WineEngGetKerningPairs(GdiFont, DWORD, KERNINGPAIR *); extern DWORD WineEngGetKerningPairs(GdiFont*, DWORD, KERNINGPAIR *);
extern BOOL WineEngGetLinkedHFont(DC *dc, WCHAR c, HFONT *new_hfont, UINT *glyph); extern BOOL WineEngGetLinkedHFont(DC *dc, WCHAR c, HFONT *new_hfont, UINT *glyph);
extern UINT WineEngGetOutlineTextMetrics(GdiFont, UINT, LPOUTLINETEXTMETRICW); extern UINT WineEngGetOutlineTextMetrics(GdiFont*, UINT, LPOUTLINETEXTMETRICW);
extern UINT WineEngGetTextCharsetInfo(GdiFont font, LPFONTSIGNATURE fs, DWORD flags); extern UINT WineEngGetTextCharsetInfo(GdiFont *font, LPFONTSIGNATURE fs, DWORD flags);
extern BOOL WineEngGetTextExtentExPoint(GdiFont, LPCWSTR, INT, INT, LPINT, LPINT, LPSIZE); extern BOOL WineEngGetTextExtentExPoint(GdiFont*, LPCWSTR, INT, INT, LPINT, LPINT, LPSIZE);
extern BOOL WineEngGetTextExtentPointI(GdiFont, const WORD *, INT, LPSIZE); extern BOOL WineEngGetTextExtentPointI(GdiFont*, const WORD *, INT, LPSIZE);
extern INT WineEngGetTextFace(GdiFont, INT, LPWSTR); extern INT WineEngGetTextFace(GdiFont*, INT, LPWSTR);
extern BOOL WineEngGetTextMetrics(GdiFont, LPTEXTMETRICW); extern BOOL WineEngGetTextMetrics(GdiFont*, LPTEXTMETRICW);
extern BOOL WineEngInit(void); extern BOOL WineEngInit(void);
extern BOOL WineEngRemoveFontResourceEx(LPCWSTR, DWORD, PVOID); extern BOOL WineEngRemoveFontResourceEx(LPCWSTR, DWORD, PVOID);