summaryrefslogtreecommitdiff
path: root/plugins/gtkui/gdkdrawing.c
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-08-09 21:51:12 +0200
committerGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-08-09 21:51:12 +0200
commit3a50ce20a56e47f6c1b4d12fb85fec6f2eeac924 (patch)
treeeaaa38444d5481997f84295fdfe3b26a5cf4a098 /plugins/gtkui/gdkdrawing.c
parenteb745bc6b3da71987e4ff28029f0fab8f85f9467 (diff)
use bold font for currently playing track
Diffstat (limited to 'plugins/gtkui/gdkdrawing.c')
-rw-r--r--plugins/gtkui/gdkdrawing.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/plugins/gtkui/gdkdrawing.c b/plugins/gtkui/gdkdrawing.c
index 2ccb27ae..b914b70b 100644
--- a/plugins/gtkui/gdkdrawing.c
+++ b/plugins/gtkui/gdkdrawing.c
@@ -114,8 +114,21 @@ draw_init_font (GtkStyle *new_font_style) {
pango_layout_set_font_description (pangolayout, desc);
pango_ready = 1;
}
+ else if (new_font_style) {
+ PangoFontDescription *desc = font_style->font_desc;
+ pango_layout_set_font_description (pangolayout, desc);
+ }
}
+void
+draw_init_font_bold (void) {
+ PangoFontDescription *desc = pango_font_description_copy (font_style->font_desc);
+ pango_font_description_set_weight (desc, PANGO_WEIGHT_BOLD);
+ pango_layout_set_font_description (pangolayout, desc);
+ pango_font_description_free(desc);
+}
+
+
float
draw_get_font_size (void) {
draw_init_font (NULL);