Huw Davies : gdi32: Ignore fonts with names that begin with a '.'.
Alexandre Julliard
julliard at winehq.org
Fri Mar 21 07:47:01 CDT 2008
Module: wine
Branch: master
Commit: 4b6d284de60a64b8c90da1056f72a68cd168419a
URL: http://source.winehq.org/git/wine.git/?a=commit;h=4b6d284de60a64b8c90da1056f72a68cd168419a
Author: Huw Davies <huw at codeweavers.com>
Date: Fri Mar 21 10:32:45 2008 +0000
gdi32: Ignore fonts with names that begin with a '.'.
---
dlls/gdi32/freetype.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/dlls/gdi32/freetype.c b/dlls/gdi32/freetype.c
index 40ada6d..820da77 100644
--- a/dlls/gdi32/freetype.c
+++ b/dlls/gdi32/freetype.c
@@ -1227,6 +1227,13 @@ static INT AddFontToList(const char *file, void *font_data_ptr, DWORD font_data_
return 0;
}
+ if(ft_face->family_name[0] == '.') /* Ignore fonts with names beginning with a dot */
+ {
+ TRACE("Ignoring %s since its family name begins with a dot\n", debugstr_a(file));
+ pFT_Done_Face(ft_face);
+ return 0;
+ }
+
if (target_family)
{
localised_family = get_familyname(ft_face);
More information about the wine-cvs
mailing list