summaryrefslogtreecommitdiff
path: root/pango/pangofc-fontmap.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2018-11-19 11:47:42 -0500
committerMatthias Clasen <mclasen@redhat.com>2019-07-18 12:47:53 -0700
commit8901ef5b832091cae2a28cd4537574ee1ae012a3 (patch)
tree43e60653a75612fc5d8b09d6cef00e0176f578c8 /pango/pangofc-fontmap.c
parentceea8a00ce38fec1c0879d61a79911abc5788374 (diff)
downloadpango-8901ef5b832091cae2a28cd4537574ee1ae012a3.tar.gz
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.
Diffstat (limited to 'pango/pangofc-fontmap.c')
-rw-r--r--pango/pangofc-fontmap.c4
1 files changed, 3 insertions, 1 deletions
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 */