diff options
author | Ivan Oleynikov <ivan.oleynikov95@gmail.com> | 2021-07-28 10:53:38 +0600 |
---|---|---|
committer | Harry Jeffery <harry@exec64.co.uk> | 2021-07-29 17:01:31 +0000 |
commit | 33560e8e2eac581e0002351d22dc7ed2116c747a (patch) | |
tree | e01026ac5d3d018d79a0a3631b50580efd0413bf | |
parent | 3c1d27d8859cc4eda5802c1502ee5ae7430a9c8f (diff) | |
download | imv-33560e8e2eac581e0002351d22dc7ed2116c747a.tar.gz |
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.
-rw-r--r-- | src/canvas.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/canvas.c b/src/canvas.c index 2cea61e..221838a 100644 --- a/src/canvas.c +++ b/src/canvas.c @@ -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, ...) |