From 8901ef5b832091cae2a28cd4537574ee1ae012a3 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Mon, 19 Nov 2018 11:47:42 -0500 Subject: fc: Move font setup code from the shaper Move all the code that sets up the hb_font_t to pango_fc_font_create_hb_font, and use it from the shaper. This is the second step towards taking over font management. Even better, harfbuzz has a ready-made function for this. We can drop a lot of FT_Face-using code this way. We assume unhinted rendering for now, so we can set ppem to 0. --- pango/pangofc-fontmap.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'pango/pangofc-fontmap.c') diff --git a/pango/pangofc-fontmap.c b/pango/pangofc-fontmap.c index 9d968328..cc450d20 100644 --- a/pango/pangofc-fontmap.c +++ b/pango/pangofc-fontmap.c @@ -264,7 +264,9 @@ static FcPattern *pango_fc_patterns_get_font_pattern (PangoFcPatterns *pat static FcPattern *uniquify_pattern (PangoFcFontMap *fcfontmap, FcPattern *pattern); -static gpointer +gpointer get_gravity_class (void); + +gpointer get_gravity_class (void) { static GEnumClass *class = NULL; /* MT-safe */ -- cgit v1.2.1