summaryrefslogtreecommitdiff
path: root/pango/pango-hbface.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2022-01-27 00:46:15 -0500
committerMatthias Clasen <mclasen@redhat.com>2022-01-28 18:43:39 -0500
commit73effe2d038f05fb9b107eb9189068acb3e68415 (patch)
treea9b76ca845ace8ea25442496f7352e0ca61c3950 /pango/pango-hbface.c
parent71a597754cd977186a6c9541366a3c893c6ddfc2 (diff)
downloadpango-73effe2d038f05fb9b107eb9189068acb3e68415.tar.gz
Introduce user fonts
Add a way to create callback-based faces and fonts. The cairo implementation of this uses cairos user fonts. New APIs: PangoUserFace and PangoUserFont
Diffstat (limited to 'pango/pango-hbface.c')
-rw-r--r--pango/pango-hbface.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/pango/pango-hbface.c b/pango/pango-hbface.c
index 7c93f9aa..5adc1061 100644
--- a/pango/pango-hbface.c
+++ b/pango/pango-hbface.c
@@ -283,7 +283,8 @@ pango_hb_face_finalize (GObject *object)
{
PangoHbFace *self = PANGO_HB_FACE (object);
- hb_face_destroy (self->face);
+ if (self->face)
+ hb_face_destroy (self->face);
pango_font_description_free (self->description);
g_free (self->name);
g_free (self->file);