[dirty] more logging

This commit is contained in:
Consolatis 2024-03-16 15:57:35 +01:00
parent 8399df2ea8
commit 42555b0b27

View file

@ -15,9 +15,10 @@ PangoFontDescription *
font_to_pango_desc(struct font *font) font_to_pango_desc(struct font *font)
{ {
char buf[4096]; char buf[4096];
wlr_log(WLR_ERROR, "pango scale: %d font->size %d", PANGO_SCALE, font->size);
snprintf(buf, sizeof(buf), "%s %d", font->name, font->size * PANGO_SCALE); snprintf(buf, sizeof(buf), "%s %d", font->name, font->size * PANGO_SCALE);
PangoFontDescription *desc = pango_font_description_from_string(buf); PangoFontDescription *desc = pango_font_description_from_string(buf);
wlr_log(WLR_ERROR, "got desc for %s: %p", buf, desc); wlr_log(WLR_ERROR, "got desc for '%s': %p", buf, desc);
//PangoFontDescription *desc = pango_font_description_new(); //PangoFontDescription *desc = pango_font_description_new();
//pango_font_description_set_family(desc, font->name); //pango_font_description_set_family(desc, font->name);
//pango_font_description_set_size(desc, font->size * PANGO_SCALE); //pango_font_description_set_size(desc, font->size * PANGO_SCALE);