From 448efc9e7791530e51bc7b4a57b8b33cecfb175f Mon Sep 17 00:00:00 2001 From: Frash <> Date: Sat, 15 Feb 2020 19:56:17 +0100 Subject: [PATCH 1/1] change font to use pt instead of px to match system font setting --- panel-plugin/datetime.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/panel-plugin/datetime.c b/panel-plugin/datetime.c index f4e0827..9adb67b 100644 --- a/panel-plugin/datetime.c +++ b/panel-plugin/datetime.c @@ -345,7 +345,7 @@ static void datetime_update_date_font(t_datetime *datetime) font = pango_font_description_from_string(datetime->date_font); if (G_LIKELY (font)) { - css = g_strdup_printf("label { font-family: %s; font-size: %dpx; font-style: %s; font-weight: %s }", + css = g_strdup_printf("label { font-family: %s; font-size: %dpt; font-style: %s; font-weight: %s }", pango_font_description_get_family (font), pango_font_description_get_size (font) / PANGO_SCALE, (pango_font_description_get_style(font) == PANGO_STYLE_ITALIC || @@ -390,7 +390,7 @@ static void datetime_update_time_font(t_datetime *datetime) font = pango_font_description_from_string(datetime->time_font); if (G_LIKELY (font)) { - css = g_strdup_printf("label { font-family: %s; font-size: %dpx; font-style: %s; font-weight: %s }", + css = g_strdup_printf("label { font-family: %s; font-size: %dpt; font-style: %s; font-weight: %s }", pango_font_description_get_family (font), pango_font_description_get_size (font) / PANGO_SCALE, (pango_font_description_get_style(font) == PANGO_STYLE_ITALIC || -- 2.25.0