[pango/pango2-windows: 64/65] examples: Use pango_font_map_new_default()




commit 3d9562c456ce6d4816daa6672f03504d74a0889e
Author: Chun-wei Fan <fanchunwei src gnome org>
Date:   Thu Jun 9 11:15:57 2022 +0800

    examples: Use pango_font_map_new_default()
    
    ...instead of relying on the FontConfig-specific pango_fc_hb_font_map_new().
    
    The pango_font_map_new_default() should cover the PangoFontMap we need use
    depending on what backend we have and choose to use.

 examples/userfont.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/examples/userfont.c b/examples/userfont.c
index 35df63ca1..92ca101ba 100644
--- a/examples/userfont.c
+++ b/examples/userfont.c
@@ -15,7 +15,6 @@
 #include <stdio.h>
 
 #include <pango/pangocairo.h>
-#include <pango/pangofc-fontmap.h>
 
 static PangoFontMap *fontmap;
 
@@ -321,7 +320,7 @@ main (int argc, char **argv)
 
   filename = argv[1];
 
-  fontmap = PANGO_FONT_MAP (pango_fc_font_map_new ());
+  fontmap = PANGO_FONT_MAP (pango_font_map_new_default ());
   setup_fontmap (PANGO_FONT_MAP (fontmap));
 
   layout = get_layout ();


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]