[PATCH] gdi32: Report unsubstituted font face names.
Alexandre Julliard
julliard at winehq.org
Tue May 6 09:49:15 CDT 2014
Alex Henrie <alexhenrie24 at 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.
--
Alexandre Julliard
julliard at winehq.org
More information about the wine-devel
mailing list