[gtk/force-emoji: 3/4] debug spew



commit f9e880db8dbee412bbddec232f2820609733afd7
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun Nov 25 18:06:36 2018 -0500

    debug spew

 gtk/gtkfontchooserwidget.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkfontchooserwidget.c b/gtk/gtkfontchooserwidget.c
index 9e15f56bff..30b47dec24 100644
--- a/gtk/gtkfontchooserwidget.c
+++ b/gtk/gtkfontchooserwidget.c
@@ -1562,11 +1562,11 @@ is_named_instance (hb_font_t *hb_font)
          {
            hb_ot_name_id_t name_id;
            char name[64];
-           unsigned int name_len;
+           unsigned int name_len = 64;
 
            name_id = hb_ot_var_named_instance_get_subfamily_name_id (hb_face, instance);
            hb_ot_name_get_utf8 (hb_face, name_id, hb_language_get_default (), &name_len, name);
-           g_print ("found named instance: %d, %s\n",  instance, name);
+           g_print ("found named instance %d, name %d -> %s\n",  instance, name_id, name);
            return TRUE;
          }
     }
@@ -1620,6 +1620,8 @@ add_axis (GtkFontChooserWidget   *fontchooser,
       name = text;
     }
 
+g_print ("axis %s\n", name);
+
   axis->label = gtk_label_new (name);
   gtk_widget_set_halign (axis->label, GTK_ALIGN_START);
   gtk_widget_set_valign (axis->label, GTK_ALIGN_BASELINE);


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