Alexandre Julliard : gdi32: Move the dumping of the font list out of freetype.c.

Alexandre Julliard julliard at winehq.org
Mon Nov 2 16:21:19 CST 2020


Module: wine
Branch: master
Commit: ef77b38888d7fb68647ace9fb030be5b47c39189
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=ef77b38888d7fb68647ace9fb030be5b47c39189

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Sat Oct 31 10:21:00 2020 +0100

gdi32: Move the dumping of the font list out of freetype.c.

Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/gdi32/font.c     | 19 +++++++++++++++++++
 dlls/gdi32/freetype.c | 19 -------------------
 2 files changed, 19 insertions(+), 19 deletions(-)

diff --git a/dlls/gdi32/font.c b/dlls/gdi32/font.c
index 3f6e74fee1c..5cca897fd40 100644
--- a/dlls/gdi32/font.c
+++ b/dlls/gdi32/font.c
@@ -667,6 +667,24 @@ static void load_gdi_font_replacements(void)
     RegCloseKey( hkey );
 }
 
+static void dump_gdi_font_list(void)
+{
+    struct gdi_font_family *family;
+    struct gdi_font_face *face;
+
+    LIST_FOR_EACH_ENTRY( family, &font_list, struct gdi_font_family, entry )
+    {
+        TRACE( "Family: %s\n", debugstr_w(family->family_name) );
+        LIST_FOR_EACH_ENTRY( face, &family->faces, struct gdi_font_face, entry )
+        {
+            TRACE( "\t%s\t%s\t%08x", debugstr_w(face->style_name), debugstr_w(face->full_name),
+                   face->fs.fsCsb[0] );
+            if (!face->scalable) TRACE(" %d", face->size.height );
+            TRACE("\n");
+	}
+    }
+}
+
 struct gdi_font_face *create_face( const WCHAR *style, const WCHAR *fullname, const WCHAR *file,
                                    UINT index, FONTSIGNATURE fs, DWORD ntmflags, DWORD version,
                                    DWORD flags, const struct bitmap_font_size *size )
@@ -2778,6 +2796,7 @@ void font_init(void)
     load_gdi_font_subst();
     load_gdi_font_replacements();
     load_system_links();
+    dump_gdi_font_list();
     dump_gdi_font_subst();
 }
 
diff --git a/dlls/gdi32/freetype.c b/dlls/gdi32/freetype.c
index 936e8539a8d..59095d4e6d8 100644
--- a/dlls/gdi32/freetype.c
+++ b/dlls/gdi32/freetype.c
@@ -1653,23 +1653,6 @@ static INT CDECL freetype_remove_font( const WCHAR *file, DWORD flags )
     return count;
 }
 
-static void DumpFontList(void)
-{
-    Family *family;
-    Face *face;
-
-    LIST_FOR_EACH_ENTRY( family, &font_list, Family, entry ) {
-        TRACE( "Family: %s\n", debugstr_w(family->family_name) );
-        LIST_FOR_EACH_ENTRY( face, &family->faces, Face, entry ) {
-            TRACE( "\t%s\t%s\t%08x", debugstr_w(face->style_name), debugstr_w(face->full_name),
-                   face->fs.fsCsb[0] );
-            if(!face->scalable)
-                TRACE(" %d", face->size.height);
-            TRACE("\n");
-	}
-    }
-}
-
 #ifdef __ANDROID__
 static BOOL ReadFontDir(const char *dirname, BOOL external_fonts)
 {
@@ -2321,8 +2304,6 @@ BOOL WineEngInit( const struct font_backend_funcs **funcs )
 
     reorder_font_list();
 
-    DumpFontList();
-
     if(disposition == REG_CREATED_NEW_KEY)
         update_reg_entries();
 




More information about the wine-cvs mailing list