+static void measure_height(ObFont *f)
+{
+ XGlyphInfo info;
+ char *str;
+
+ /* XXX add some extended UTF8 characters in here? */
+ str = "12345678900-qwertyuiopasdfghjklzxcvbnm"
+ "!@#$%^&*()_+QWERTYUIOPASDFGHJKLZXCVBNM"
+ "`~[]\\;',./{}|:\"<>?";
+
+ XftTextExtentsUtf8(ob_display, f->xftfont,
+ (FcChar8*)str, strlen(str), &info);
+ f->height = (signed) info.height;
+}
+