From df7e77ca88583abca1e41fe62268dbb302406356 Mon Sep 17 00:00:00 2001 From: Frash <> Date: Sat, 15 Feb 2020 19:42:08 +0100 Subject: [PATCH 1/1] change font to use pt instead of px to match system font setting --- panel-plugin/xfce4-cpufreq-plugin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/panel-plugin/xfce4-cpufreq-plugin.c b/panel-plugin/xfce4-cpufreq-plugin.c index e886121..fab4a8e 100644 --- a/panel-plugin/xfce4-cpufreq-plugin.c +++ b/panel-plugin/xfce4-cpufreq-plugin.c @@ -53,7 +53,7 @@ cpufreq_label_set_font (void) { font = pango_font_description_from_string(cpuFreq->options->fontname); - css_font = g_strdup_printf("font-family: %s; font-size: %dpx; font-style: %s; font-weight: %s;", + css_font = g_strdup_printf("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