[dirty] wlr_log all the things

This commit is contained in:
Consolatis 2024-03-16 14:05:15 +01:00
parent 612bb3a761
commit 01b775aceb

View file

@ -38,9 +38,13 @@ font_extents(struct font *font, const char *string)
PangoLayout *layout; PangoLayout *layout;
surface = cairo_image_surface_create(CAIRO_FORMAT_ARGB32, 1, 1); surface = cairo_image_surface_create(CAIRO_FORMAT_ARGB32, 1, 1);
wlr_log(WLR_ERROR, "\tsurface: %p", surface);
c = cairo_create(surface); c = cairo_create(surface);
wlr_log(WLR_ERROR, "\tcairo: %p", c);
layout = pango_cairo_create_layout(c); layout = pango_cairo_create_layout(c);
wlr_log(WLR_ERROR, "\tlayout: %p", layout);
PangoFontDescription *desc = font_to_pango_desc(font); PangoFontDescription *desc = font_to_pango_desc(font);
wlr_log(WLR_ERROR, "\tfont desc: %p", desc);
pango_layout_set_font_description(layout, desc); pango_layout_set_font_description(layout, desc);
pango_layout_set_text(layout, string, -1); pango_layout_set_text(layout, string, -1);