+ /* Use glyph surface to provide image data for glyph rectangle */
+ cairo_surface_t* glyph_surface = guac_client_data->glyph_surface;
+ int stride = cairo_image_surface_get_stride(glyph_surface);
+
+ /* Ensure data is ready */
+ cairo_surface_flush(glyph_surface);
+
+ /* Create surface for subsection with text */
+ cairo_surface_t* surface = cairo_image_surface_create_for_data(
+ cairo_image_surface_get_data(glyph_surface) + 4*x + y*stride,
+ cairo_image_surface_get_format(glyph_surface),
+ width, height, stride);
+