]> Dogcows Code - chaz/openbox/commitdiff
use font 8point by default if none is specified
authorDana Jansens <danakj@orodu.net>
Sun, 4 Mar 2007 01:08:33 +0000 (01:08 +0000)
committerDana Jansens <danakj@orodu.net>
Sun, 4 Mar 2007 01:08:33 +0000 (01:08 +0000)
render/font.c

index 3d2e1ed9b02facfa7ba83decf88aa23a86e69c06..a63c8ca502fd7accea6d4fc8227b0b4bafab53c4 100644 (file)
@@ -132,6 +132,8 @@ static RrFont *openfont(const RrInstance *inst, gchar *fontstring)
     else if (FcPatternGetInteger(pat, "pixelsize", 0, &ival) == FcResultMatch)
         pango_font_description_set_absolute_size(out->font_desc,
                                                  ival * PANGO_SCALE);
+    else
+        pango_font_description_set_size(out->font_desc, 8 * PANGO_SCALE);
 
     if (FcPatternGetBool(pat, OB_SHADOW, 0, &out->shadow) != FcResultMatch)
         out->shadow = FALSE;
This page took 0.023712 seconds and 4 git commands to generate.