]> Dogcows Code - chaz/openbox/commitdiff
well, i pinpointed the problem code that causes the fonts to be cut off, but this...
authorMikael Magnusson <mikachu@comhem.se>
Mon, 4 Apr 2005 07:02:22 +0000 (07:02 +0000)
committerMikael Magnusson <mikachu@comhem.se>
Mon, 4 Apr 2005 07:02:22 +0000 (07:02 +0000)
render/font.c

index 8b0d5dbcfc0100e47bd63226a793a3db597620fd..98d7c0bc9feb4cdc2900f70de925cdd12283edcd 100644 (file)
@@ -234,8 +234,17 @@ gint RrFontHeight(const RrFont *f)
      g_object_unref(context);
      return result;
  */
-    return f->xftfont->ascent + f->xftfont->descent +
-        (f->shadow ? f->offset : 0);
+#ifndef ANNOYING_QUESTION
+// Obviously you either remove this or pass -DANNOYING_QUESTION to actually
+// compile the code.
+#error XXX Does anyone have any idea how the above is supposed to work?
+#else
+#warning XXX Using very ugly workaround in the meantime.
+#endif
+
+    gint x, y;
+    font_measure_full(f, " ", &x, &y);
+    return y;
 
 #endif /* USE_PANGO */
 }
This page took 0.021935 seconds and 4 git commands to generate.