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:
parent
3c1d27d885
commit
33560e8e2e
|
@ -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, ...)
|
||||
|
|
Loading…
Reference in a new issue