+rack_tile_position (int i, int *x, int *y)
+{
+ guess_tile_position (i, x, y);
+ *y += (LETTER_SIZE + LETTER_PAD);
+}
+
+typedef struct _dict_paint_cursor
+{
+ cairo_t *cr;
+ int line_height;
+ int x;
+ int y;
+ int max_column_width;
+ int max_y;
+} dict_paint_cursor_t;
+
+static void
+dict_paint_action (void *closure, char *word)
+{
+ dict_paint_cursor_t *cursor = closure;
+ cairo_t *cr = cursor->cr;
+ double new_x, new_y;
+
+ cairo_move_to (cr, cursor->x, cursor->y);
+ cairo_show_text (cr, word);
+ cairo_get_current_point (cr, &new_x, &new_y);
+ if (new_x > cursor->max_column_width)
+ cursor->max_column_width = new_x;
+ cursor->y += cursor->line_height;
+ if (cursor->y > cursor->max_y) {
+ cursor->x = cursor->max_column_width + cursor->line_height / 2;
+ cursor->y = 0;
+ }
+}
+
+static void
+dict_paint (cairo_t *cr, void *closure, double width, double height)