/* Returns the serialized #CRFontStyle. The caller must free the returned string using g_free().  */
const gchar* cr_font_style_to_string(enum CRFontStyle a_code)
/* Returns the serialized #CRFontStyle. The caller must free the returned string using g_free().  */
const gchar* cr_font_style_to_string(enum CRFontStyle a_code)
{
        gchar *str = NULL;
        switch (a_code) {
        case FONT_STYLE_NORMAL:
                str = (gchar *) "normal";
                break;
        case FONT_STYLE_ITALIC:
                str = (gchar *) "italic";
                break;
        case FONT_STYLE_OBLIQUE:
                str = (gchar *) "oblique";
                break;
        case FONT_STYLE_INHERIT:
                str = (gchar *) "inherit";
                break;
        default:
                str = (gchar *) "unknown font style value";
                break;
        }
        return str;
}