+ if (!inst->font_width) {
+ /* Maybe this is a 16-bit font? If so, GDK 2 actually expects a
+ * pointer to an XChar2b. This is pretty revolting. Can Pango do
+ * this more neatly even for server-side fonts?
+ */
+ XChar2b space;
+ space.byte1 = 0;
+ space.byte2 = ' ';
+ inst->font_width = gdk_text_width(inst->fonts[0],
+ (const gchar *)&space, 2);
+ }