[pango/pango2: 244/301] examples: Avoid direct fontconfig use




commit 45248d39fd871cbdd8c7662a2a2c3e1a0ffd4cfe
Author: Matthias Clasen <mclasen redhat com>
Date:   Wed Jun 15 00:41:24 2022 -0400

    examples: Avoid direct fontconfig 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]