#include <gtk/gtk.h>

int
main (int    argc,
      char **argv)
{
  GtkWidget *window;
  GtkWidget *entry;
  PangoFontDescription *font_desc;

  gtk_init (&argc, &argv);

  window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
  g_signal_connect (window, "destroy", gtk_main_quit, NULL);

  entry = gtk_entry_new ();
  gtk_widget_set_valign (entry, GTK_ALIGN_CENTER);
  gtk_container_add (GTK_CONTAINER (window), entry);

  /* The bug occurs if gtk_widget_override_font() is called. */
  font_desc = pango_font_description_from_string ("Monospace 10");
  gtk_widget_override_font (entry, font_desc);
  pango_font_description_free (font_desc);

  gtk_widget_show_all (window);

  gtk_main ();
  return 0;
}
