gdi32: Move GdiRealizationInfo to text.c.
Signed-off-by: Jacek Caban <jacek@codeweavers.com> Signed-off-by: Huw Davies <huw@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
6dfa2e3740
commit
62a9bae480
|
@ -6807,35 +6807,6 @@ BOOL WINAPI NtGdiGetFontFileInfo( DWORD instance_id, DWORD file_index, struct fo
|
|||
return ret;
|
||||
}
|
||||
|
||||
struct realization_info
|
||||
{
|
||||
DWORD flags; /* 1 for bitmap fonts, 3 for scalable fonts */
|
||||
DWORD cache_num; /* keeps incrementing - num of fonts that have been created allowing for caching?? */
|
||||
DWORD instance_id; /* identifies a realized font instance */
|
||||
};
|
||||
|
||||
/*************************************************************
|
||||
* GdiRealizationInfo (GDI32.@)
|
||||
*
|
||||
* Returns a structure that contains some font information.
|
||||
*/
|
||||
BOOL WINAPI GdiRealizationInfo(HDC hdc, struct realization_info *info)
|
||||
{
|
||||
struct font_realization_info ri;
|
||||
BOOL ret;
|
||||
|
||||
ri.size = sizeof(ri);
|
||||
ret = NtGdiGetRealizationInfo( hdc, &ri );
|
||||
if (ret)
|
||||
{
|
||||
info->flags = ri.flags;
|
||||
info->cache_num = ri.cache_num;
|
||||
info->instance_id = ri.instance_id;
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
/*************************************************************
|
||||
* NtGdiGetCharWidthInfo (win32u.@)
|
||||
*/
|
||||
|
|
|
@ -1977,3 +1977,28 @@ BOOL WINAPI GetFontFileData( DWORD instance_id, DWORD file_index, UINT64 offset,
|
|||
{
|
||||
return NtGdiGetFontFileData( instance_id, file_index, &offset, buff, buff_size );
|
||||
}
|
||||
|
||||
struct realization_info
|
||||
{
|
||||
DWORD flags; /* 1 for bitmap fonts, 3 for scalable fonts */
|
||||
DWORD cache_num; /* keeps incrementing - num of fonts that have been created allowing for caching?? */
|
||||
DWORD instance_id; /* identifies a realized font instance */
|
||||
};
|
||||
|
||||
/*************************************************************
|
||||
* GdiRealizationInfo (GDI32.@)
|
||||
*
|
||||
* Returns a structure that contains some font information.
|
||||
*/
|
||||
BOOL WINAPI GdiRealizationInfo( HDC hdc, struct realization_info *info )
|
||||
{
|
||||
struct font_realization_info ri;
|
||||
|
||||
ri.size = sizeof(ri);
|
||||
if (!NtGdiGetRealizationInfo( hdc, &ri )) return FALSE;
|
||||
|
||||
info->flags = ri.flags;
|
||||
info->cache_num = ri.cache_num;
|
||||
info->instance_id = ri.instance_id;
|
||||
return TRUE;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue