/* Returns the serialized form of #CRFontVariant. The caller has to free the returned string using g_free().  */
const gchar* cr_font_variant_to_string(enum CRFontVariant a_code)
/* Returns the serialized form of #CRFontVariant. The caller has to free the returned string using g_free().  */
const gchar* cr_font_variant_to_string(enum CRFontVariant a_code)
{
        gchar *str = NULL;
        switch (a_code) {
        case FONT_VARIANT_NORMAL:
                str = (gchar *) "normal";
                break;
        case FONT_VARIANT_SMALL_CAPS:
                str = (gchar *) "small-caps";
                break;
        case FONT_VARIANT_INHERIT:
                str = (gchar *) "inherit";
                break;
        }
        return str;
}