[PATCH 2/2] gdi32: List fonts copied to C:\Windows\Fonts in registry.

Huw Davies huw at codeweavers.com
Tue Mar 13 03:41:36 CDT 2018


On Mon, Mar 12, 2018 at 11:24:50PM +0000, Daniel Lehman wrote:
> From 08ea107ac1e709b091bbd1f7e22449944aef85db Mon Sep 17 00:00:00 2001
> From: Daniel Lehman <dlehman at esri.com>
> Date: Thu, 8 Mar 2018 11:53:17 -0800
> Subject: [PATCH 2/2] gdi32: List fonts copied to C:\Windows\Fonts in registry.
> 
> Signed-off-by: Daniel Lehman <dlehman at esri.com>
> ---
>  dlls/gdi32/freetype.c   | 51 ++++++++++++++++++++++++++-----------------------
>  dlls/gdi32/tests/font.c |  2 +-
>  2 files changed, 28 insertions(+), 25 deletions(-)
> 
> diff --git a/dlls/gdi32/freetype.c b/dlls/gdi32/freetype.c
> index 1293e08..dfe9a23 100644
> --- a/dlls/gdi32/freetype.c
> +++ b/dlls/gdi32/freetype.c
> @@ -282,11 +282,10 @@ typedef struct tagFace {
>      struct enum_data *cached_enum_data;
>  } Face;
>  
> -#define ADDFONT_EXTERNAL_FONT 0x01
> -#define ADDFONT_ALLOW_BITMAP  0x02
> -#define ADDFONT_ADD_TO_CACHE  0x04
> -#define ADDFONT_ADD_RESOURCE  0x08  /* added through AddFontResource */
> -#define ADDFONT_VERTICAL_FONT 0x10
> +#define ADDFONT_ALLOW_BITMAP  0x01
> +#define ADDFONT_ADD_TO_CACHE  0x02
> +#define ADDFONT_ADD_RESOURCE  0x04  /* added through AddFontResource */
> +#define ADDFONT_VERTICAL_FONT 0x08
>  #define ADDFONT_AA_FLAGS(flags) ((flags) << 16)

Removing support for external fonts doesn't look right.
Fonts marked as external are the host's system fonts
that shouldn't remain in the registry in case they are
removed from the system.  This contrasts with fonts
that have been programatically added to the registry
by Windows apps.

Huw.



More information about the wine-devel mailing list