Alex Henrie alexhenrie24@gmail.com writes:
@@ -5805,12 +5810,13 @@ static BOOL freetype_EnumFonts( PHYSDEV dev, LPLOGFONTW plf, FONTENUMPROCW proc, GDI_CheckNotLock(); EnterCriticalSection( &freetype_cs ); if(plf->lfFaceName[0]) {
FontSubst *psub;
psub = get_font_subst(&font_subst_list, plf->lfFaceName, plf->lfCharSet);
FontSubst *psub = get_font_subst(&font_subst_list, plf->lfFaceName, plf->lfCharSet);
WCHAR *unsubstitutedFaceName = NULL; if(psub) { TRACE("substituting %s -> %s\n", debugstr_w(plf->lfFaceName), debugstr_w(psub->to.name));
unsubstitutedFaceName = plf->lfFaceName; lf = *plf; strcpyW(lf.lfFaceName, psub->to.name); plf = &lf;
This could be seriously simplified then.