WIP: Use set_size instead of set_absolute_size for font

This seems to have a better behavior, this way, the fonts in Imv seem to have
the same size as the fonts in other programs (Sway, Waybar) when configured in
the same way.
This commit is contained in:
Ivan Oleynikov 2021-07-28 10:53:38 +06:00 committed by Harry Jeffery
parent 3c1d27d885
commit 33560e8e2e

View file

@ -127,7 +127,7 @@ void imv_canvas_font(struct imv_canvas *canvas, const char *name, int size)
{
pango_font_description_set_family(canvas->font, name);
pango_font_description_set_weight(canvas->font, PANGO_WEIGHT_NORMAL);
pango_font_description_set_absolute_size(canvas->font, size * PANGO_SCALE);
pango_font_description_set_size(canvas->font, size * PANGO_SCALE);
}
int imv_canvas_printf(struct imv_canvas *canvas, int x, int y, const char *fmt, ...)