[pango/pango2: 26/44] examples: Avoid direct fontconfig use
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pango/pango2: 26/44] examples: Avoid direct fontconfig use
- Date: Thu, 16 Jun 2022 00:50:33 +0000 (UTC)
commit f18db305e822d008818467f5b2edf7541f27ca0a
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 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]