Implement FontIsLinked.

oldstable
Huw Davies 2005-09-07 13:26:49 +00:00 committed by Alexandre Julliard
parent 6557832a91
commit 90b897f00e
3 changed files with 25 additions and 1 deletions

View File

@ -3531,6 +3531,23 @@ BOOL WineEngGetLinkedHFont(DC *dc, WCHAR c, HFONT *new_hfont, UINT *glyph)
return ret;
}
/*************************************************************
* FontIsLinked
*/
BOOL WINAPI FontIsLinked(HDC hdc)
{
DC *dc = DC_GetDCPtr(hdc);
BOOL ret = FALSE;
if(!dc) return FALSE;
if(dc->gdiFont && !list_empty(&dc->gdiFont->child_fonts))
ret = TRUE;
GDI_ReleaseObj(hdc);
TRACE("returning %d\n", ret);
return ret;
}
#else /* HAVE_FREETYPE */
@ -3642,4 +3659,9 @@ BOOL WineEngGetLinkedHFont(DC *dc, WCHAR c, HFONT *new_hfont, UINT *glyph)
{
return FALSE;
}
BOOL WINAPI FontIsLinked(HDC hdc)
{
return FALSE;
}
#endif /* HAVE_FREETYPE */

View File

@ -125,7 +125,7 @@
@ stdcall FixBrushOrgEx(long long long ptr)
@ stdcall FlattenPath(long)
@ stdcall FloodFill(long long long long)
# @ stub FontIsLinked
@ stdcall FontIsLinked(long)
@ stdcall FrameRgn(long long long long long)
@ stub FreeImageColorMatcher
# @ stub GdiAddFontResourceW

View File

@ -432,3 +432,5 @@ extern BOOL REGION_FrameRgn( HRGN dest, HRGN src, INT x, INT y );
/* Undocumented value for DIB's iUsage: Indicates a mono DIB w/o pal enties */
#define DIB_PAL_MONO 2
#endif /* __WINE_GDI_PRIVATE_H */
BOOL WINAPI FontIsLinked(HDC);