Some cool changes surely
[mikachu/openbox.git] / obrender / font.c
index 72933e0..72f191a 100644 (file)
@@ -113,7 +113,10 @@ RrFont *RrFontOpen(const RrInstance *inst, const gchar *name, gint size,
     pango_font_description_set_family(out->font_desc, name);
     pango_font_description_set_weight(out->font_desc, pweight);
     pango_font_description_set_style(out->font_desc, pstyle);
-    pango_font_description_set_size(out->font_desc, size * PANGO_SCALE);
+    if (size < 0)
+        pango_font_description_set_absolute_size(out->font_desc, -size * PANGO_SCALE);
+    else
+        pango_font_description_set_size(out->font_desc, size * PANGO_SCALE);
 
     /* setup the layout */
     pango_layout_set_font_description(out->layout, out->font_desc);