winhlp32: Prepare winhlp32 for more font types.

Signed-off-by: Jean-Christophe Cardot <wine@cardot.net>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Jean-Christophe Cardot 2016-04-10 22:06:10 +02:00 committed by Alexandre Julliard
parent d55cb801bc
commit 5200dc9b05
2 changed files with 23 additions and 0 deletions

View File

@ -1865,6 +1865,26 @@ static BOOL HLPFILE_ReadFont(HLPFILE* hlpfile)
hlpfile->fonts = HeapAlloc(GetProcessHeap(), 0, sizeof(HLPFILE_FONT) * dscr_num);
len = (dscr_offset - face_offset) / face_num;
/* mvb font */
if (face_offset >= 16)
{
hlpfile->scale = 1;
hlpfile->rounderr = 0;
WINE_FIXME("mvb font: not implemented\n");
return FALSE;
}
/* new font */
if (face_offset >= 12)
{
hlpfile->scale = 1;
hlpfile->rounderr = 0;
WINE_FIXME("new font: not implemented\n");
return FALSE;
}
/* old font */
hlpfile->scale = 10;
hlpfile->rounderr = 5;
/* EPP for (i = face_offset; i < dscr_offset; i += len) */
/* EPP WINE_FIXME("[%d]: %*s\n", i / len, len, ref + i); */
for (i = 0; i < dscr_num; i++)

View File

@ -149,6 +149,9 @@ typedef struct tagHlpFileFile
COLORREF popup_color;
LPSTR help_on_file;
int scale;
int rounderr;
} HLPFILE;
/*