--- xfce4-xkb-plugin-0.5.3.3/panel-plugin/xkb-cairo.c	2009-03-06 16:16:03.000000000 +0300
+++ xfce4-xkb-plugin-0.5.3.3-mod/panel-plugin/xkb-cairo.c	2010-04-01 13:52:59.000000000 +0400
@@ -32,7 +32,7 @@
 #include "xkb-cairo.h"
 #include "xkb-util.h"
 
-#define XKB_PREFERRED_FONT "Courier New, Courier 10 Pitch, Monospace Bold %d"
+#define XKB_PREFERRED_FONT "DejaVu Sans, Courier New, Courier 10 Pitch, Monospace Bold %dpx"
 
 #define xkb_cairo_arc_for_flag(cr, x, y, r, a1, a2) \
     xx = layoutx + width - 12 + x; \
@@ -170,7 +170,7 @@
     layout = pango_cairo_create_layout (cr);
 
     pango_layout_set_text (layout, normalized_group_name, -1);
-    g_sprintf (font_str, XKB_PREFERRED_FONT, font_sizes[panel_size - 16]);
+    g_sprintf (font_str, XKB_PREFERRED_FONT, (int) (0.8f * panel_size));
     desc = pango_font_description_from_string (font_str);
     pango_layout_set_font_description (layout, desc);
     pango_font_description_free (desc);
