third_party/cairo/src/cairo-toy-font-face.c
const char *
cairo_toy_font_face_get_family (cairo_font_face_t *font_face)
{
    cairo_toy_font_face_t *toy_font_face;

    if (font_face->status)
	return CAIRO_FONT_FAMILY_DEFAULT;

    toy_font_face = (cairo_toy_font_face_t *) font_face;
    if (! _cairo_font_face_is_toy (font_face)) {
	if (_cairo_font_face_set_error (font_face, CAIRO_STATUS_FONT_TYPE_MISMATCH))
	    return CAIRO_FONT_FAMILY_DEFAULT;
    }
    assert (toy_font_face->owns_family);
    return toy_font_face->family;
}
/**
 * cairo_toy_font_face_get_family:
 * @font_face: A toy font face
 *
 * Gets the family name of a toy font.
 *
 * Return value: The family name.  This string is owned by the font face
 * and remains valid as long as the font face is alive (referenced).
 *
 * Since: 1.8
 **/
@font_face: A toy font face

Gets the family name of a toy font.

Return value: The family name.  This string is owned by the font face
and remains valid as long as the font face is alive (referenced).


@font_face : A toy font face Gets the family name of a toy font . Return value : The family name . This string is owned by the font face and remains valid as long as the font face is alive ( referenced ) .
const char *
cairo_toy_font_face_get_family (cairo_font_face_t *font_face)
{
    cairo_toy_font_face_t *toy_font_face;
    if (font_face->status)
	return CAIRO_FONT_FAMILY_DEFAULT;
    toy_font_face = (cairo_toy_font_face_t *) font_face;
    if (! _cairo_font_face_is_toy (font_face)) {
	if (_cairo_font_face_set_error (font_face, CAIRO_STATUS_FONT_TYPE_MISMATCH))
	    return CAIRO_FONT_FAMILY_DEFAULT;
    }
    assert (toy_font_face->owns_family);
    return toy_font_face->family;
}
const char * cairo_toy_font_face_get_family ( cairo_font_face_t * font_face ) { cairo_toy_font_face_t * toy_font_face ; if ( font_face -> status ) return CAIRO_FONT_FAMILY_DEFAULT ; toy_font_face = ( cairo_toy_font_face_t * ) font_face ; if ( ! _cairo_font_face_is_toy ( font_face ) ) { if ( _cairo_font_face_set_error ( font_face , CAIRO_STATUS_FONT_TYPE_MISMATCH ) ) return CAIRO_FONT_FAMILY_DEFAULT ; } assert ( toy_font_face -> owns_family ) ; return toy_font_face -> family ; }
cairo_toy_font_face_get_family:
 @font_face: A toy font face
cairo_toy_font_face_get_family : @font_face : A toy font face