/* Returns the seriliazed font family. The caller has to free it using g_free().  */
guchar* cr_font_family_to_string(CRFontFamily *a_this, gboolean a_walk_font_family_list)
/* Returns the seriliazed font family. The caller has to free it using g_free().  */
guchar* cr_font_family_to_string(CRFontFamily *a_this, gboolean a_walk_font_family_list)
{
        enum CRStatus status = CR_OK;
        guchar *result = NULL;
        GString *stringue = NULL;
        if (!a_this) {
                result = g_strdup ("NULL");
                g_return_val_if_fail (result, NULL);
                return result;
        }
        status = cr_font_family_to_string_real (a_this,
                                                a_walk_font_family_list,
                                                &stringue);
        if (status == CR_OK && stringue) {
                result = stringue->str;
                g_string_free (stringue, FALSE);
                stringue = NULL;
        } else {
                if (stringue) {
                        g_string_free (stringue, TRUE);
                        stringue = NULL;
                }
        }
        return result;
}