/* Like everything else in this file, fonts involve Too Many Coordinate Spaces; it is easy to get confused about what's going on. */
static cairo_status_t _cairo_gstate_ensure_font_face(cairo_gstate_t *gstate)
/* Like everything else in this file, fonts involve Too Many Coordinate Spaces; it is easy to get confused about what's going on. */
static cairo_status_t _cairo_gstate_ensure_font_face(cairo_gstate_t *gstate)
{
    cairo_font_face_t *font_face;
    if (gstate->font_face != NULL)
	return gstate->font_face->status;
    font_face = cairo_toy_font_face_create (CAIRO_FONT_FAMILY_DEFAULT,
					    CAIRO_FONT_SLANT_DEFAULT,
					    CAIRO_FONT_WEIGHT_DEFAULT);
    if (font_face->status)
	return font_face->status;
    gstate->font_face = font_face;
    return CAIRO_STATUS_SUCCESS;
}