LOGFONTA lf;
} fontEnumParam;
-static int CALLBACK enumFontProc( const LOGFONT *lpelfe, const TEXTMETRIC *lpntme,
- DWORD FontType, LPARAM lParam)
+static int CALLBACK enumFontProc( const LOGFONTA *lpelfe, const TEXTMETRICA *lpntme, DWORD FontType, LPARAM lParam )
{
- NEWTEXTMETRICEX *ntme = (NEWTEXTMETRICEX*)lpntme;
+ NEWTEXTMETRICEXA *ntme = (NEWTEXTMETRICEXA*)lpntme;
fontEnumParam *rp = (fontEnumParam*) lParam;
int idx = 0;
DWORD i;
if (ntme->ntmFontSig.fsUsb[idx] & mask)
{
- memcpy(&(rp->lf),lpelfe,sizeof(LOGFONT));
+ memcpy(&(rp->lf),lpelfe,sizeof(LOGFONTA));
return 0;
}
return 1;
fontEnumParam lParam;
lParam.range = range;
- memset(&lParam.lf,0,sizeof(LOGFONT));
+ memset(&lParam.lf,0,sizeof(LOGFONTA));
*hfont = NULL;
if (recommended)
if (!*hfont)
{
- memset(&lParam.lf,0,sizeof(LOGFONT));
+ memset(&lParam.lf,0,sizeof(LOGFONTA));
lParam.lf.lfCharSet = DEFAULT_CHARSET;
if (!EnumFontFamiliesExA(hdc, &lParam.lf, enumFontProc, (LPARAM)&lParam, 0) && lParam.lf.lfFaceName[0])
struct enum_font_data
{
int total;
- ENUMLOGFONT elf[MAX_ENUM_FONTS];
+ ENUMLOGFONTA elf[MAX_ENUM_FONTS];
};
-static INT CALLBACK enum_bitmap_font_proc(const LOGFONT *lf, const TEXTMETRIC *ntm, DWORD type, LPARAM lParam)
+static INT CALLBACK enum_bitmap_font_proc(const LOGFONTA *lf, const TEXTMETRICA *ntm, DWORD type, LPARAM lParam)
{
struct enum_font_data *efnd = (struct enum_font_data *)lParam;
if (efnd->total < MAX_ENUM_FONTS)
{
- efnd->elf[efnd->total++] = *(ENUMLOGFONT*)lf;
+ efnd->elf[efnd->total++] = *(ENUMLOGFONTA*)lf;
}
else
trace("enum tests invalid; you have more than %d fonts\n", MAX_ENUM_FONTS);
return 1;
}
-static INT CALLBACK enum_truetype_proc(const LOGFONT *lf, const TEXTMETRIC *ntm, DWORD type, LPARAM lParam)
+static INT CALLBACK enum_truetype_proc(const LOGFONTA *lf, const TEXTMETRICA *ntm, DWORD type, LPARAM lParam)
{
struct enum_font_data *efnd = (struct enum_font_data *)lParam;
if (efnd->total < MAX_ENUM_FONTS)
{
- efnd->elf[efnd->total++] = *(ENUMLOGFONT*)lf;
+ efnd->elf[efnd->total++] = *(ENUMLOGFONTA*)lf;
}
else
trace("enum tests invalid; you have more than %d fonts\n", MAX_ENUM_FONTS);
SCRIPT_CACHE psc,old_psc;
SCRIPT_FONTPROPERTIES sfp;
HFONT font, oldfont;
- LOGFONT lf;
+ LOGFONTA lf;
struct enum_font_data efnd;
TEXTMETRICA tmA;
WORD gi[3];
for (i = 0; i < efnd.total; i++)
{
lstrcpyA(lf.lfFaceName, (char *)efnd.elf[i].elfFullName);
- font = CreateFontIndirect(&lf);
+ font = CreateFontIndirectA(&lf);
oldfont = SelectObject(hdc, font);
sfp.cBytes = sizeof(SCRIPT_FONTPROPERTIES);
for (i = 0; i < efnd.total; i++)
{
lstrcpyA(lf.lfFaceName, (char *)efnd.elf[i].elfFullName);
- font = CreateFontIndirect(&lf);
+ font = CreateFontIndirectA(&lf);
oldfont = SelectObject(hdc, font);
sfp.cBytes = sizeof(SCRIPT_FONTPROPERTIES);