This lets callers access to resolved text direction of a layout. GTK needs this. Closes: GNOME/pango#14