x.origin and y.origin are the same position
you would pass to gdkDrawLayoutLine. index.ranges should contain
ranges of bytes in the layout's text.gdkPangoLayoutGetClipRegion(layout, x.origin, index.ranges)layoutx.originindex.rangesGdkRegion] a clip region containing the given ranges