/* Returns CR_OK upon sucessful completion, an error code otherwise.  */
enum CRStatus cr_font_family_set_name(CRFontFamily *a_this, guchar *a_name)
/* Returns CR_OK upon sucessful completion, an error code otherwise.  */
enum CRStatus cr_font_family_set_name(CRFontFamily *a_this, guchar *a_name)
{
        g_return_val_if_fail (a_this, CR_BAD_PARAM_ERROR);
        if (a_this->type != FONT_FAMILY_NON_GENERIC) {
                return CR_BAD_PARAM_ERROR;
        }
        if (a_this->name) {
                g_free (a_this->name);
                a_this->name = NULL;
        }
        a_this->name = a_name;
        return CR_OK;
}