#include <gtk/gtk.h>

int expose (GtkWidget *widget, GdkEventExpose* event, gpointer userData) {
	char* text = "\342\200\255\330\267\330\247\331\204\330\250\40\330\263\331\204\330\247\331\205\40\331\205\330\255\331\205\330\257";
	PangoLayout* layout = gtk_widget_create_pango_layout (widget, text);
	GdkDrawable* drawable = GDK_DRAWABLE (widget->window);
	GdkGC* gc = gdk_gc_new (drawable);
	gdk_draw_layout (drawable, gc, 0, 0, layout);
	gdk_gc_unref (gc);
	g_object_unref(layout);		
	return 0;
}

int main (int argc, char** argv) {
	GtkWidget *shell, *drawingArea;
	PangoFontDescription* font;
	
	gtk_init_check (&argc, &argv);
	shell = gtk_window_new (GTK_WINDOW_TOPLEVEL);		
	drawingArea = gtk_drawing_area_new ();
	font = pango_font_description_new();
	pango_font_description_set_family(font, "Tahoma");
	pango_font_description_set_size(font, 20 * PANGO_SCALE);
	pango_font_description_set_stretch(font, PANGO_STRETCH_NORMAL);	
	gtk_widget_modify_font  (drawingArea, font);		
	gtk_container_add (GTK_CONTAINER (shell), drawingArea);
	g_signal_connect (G_OBJECT (drawingArea), "expose-event",G_CALLBACK (expose), NULL);
	g_signal_connect (G_OBJECT (shell), "destroy", G_CALLBACK (gtk_main_quit), NULL);
	g_signal_connect (G_OBJECT (shell), "delete_event",G_CALLBACK (gtk_main_quit), NULL);
	gtk_window_set_default_size (GTK_WINDOW (shell), 280, 240);
	gtk_widget_show_all (shell);
	gtk_main();
}
