[pango/pango2: 68/68] Add debug spew
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pango/pango2: 68/68] Add debug spew
- Date: Tue, 14 Jun 2022 11:26:20 +0000 (UTC)
commit 3d891fecda47a39a3c07cd763648f551af82ab17
Author: Matthias Clasen <mclasen redhat com>
Date: Tue Jun 14 07:26:02 2022 -0400
Add debug spew
pango/pango-hbface.c | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
---
diff --git a/pango/pango-hbface.c b/pango/pango-hbface.c
index 937c22cd9..321209508 100644
--- a/pango/pango-hbface.c
+++ b/pango/pango-hbface.c
@@ -448,7 +448,16 @@ pango_hb_face_create_font (PangoFontFace *face,
float dpi,
const PangoMatrix *ctm)
{
- PangoHbFace *self = PANGO_HB_FACE (face);
+ PangoHbFace *self;
+
+ if (!PANGO_IS_FONT_FACE (face))
+ {
+ char *s = pango_font_description_to_string (desc);
+ g_critical ("pango_font_face_create_font called without a face for %s", s);
+ g_free (s);
+ }
+
+ self = PANGO_HB_FACE (face);
return PANGO_FONT (pango_hb_font_new_for_description (self, desc, dpi, ctm));
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]