[pango/pango2-windows: 4/7] examples: Use pango_font_map_new_default()




commit 080ac7f36a896f168ae4731fba65ef9551f24b34
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 35df63ca..92ca101b 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]