[pango/simple-fontmap: 268/278] simple family: Set backpointer on PangoHbFace




commit 7b3601b6edaa776e073d9078a1e1bd52d2bef568
Author: Matthias Clasen <mclasen redhat com>
Date:   Wed Dec 22 18:31:20 2021 -0500

    simple family: Set backpointer on PangoHbFace
    
    It is easier to do it here, otherwise we have
    to export PangoHbFace api to do it in the fc
    fontmap.

 pango/pango-simple-family.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/pango/pango-simple-family.c b/pango/pango-simple-family.c
index faac80c1..1f89b398 100644
--- a/pango/pango-simple-family.c
+++ b/pango/pango-simple-family.c
@@ -24,6 +24,7 @@
 
 #include "pango-simple-family-private.h"
 #include "pango-impl-utils.h"
+#include "pango-hbface-private.h"
 
 /* {{{ GListModel implementation */
 
@@ -208,6 +209,7 @@ pango_simple_family_add_face (PangoSimpleFamily *self,
                               PangoFontFace     *face)
 {
   g_ptr_array_add (self->faces, g_object_ref (face));
+  pango_hb_face_set_family (PANGO_HB_FACE (face), PANGO_FONT_FAMILY (self));
 }
 
 /* }}} */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]