enum gp_markup_fmt_flags { GP_MARKUP_BOLD = 0x01, GP_MARKUP_LARGE = 0x02, GP_MARKUP_MONO = 0x04, GP_MARKUP_SUB = 0x08, GP_MARKUP_SUP = 0x10, GP_MARKUP_UNDERLINE = 0x20, GP_MARKUP_STRIKE = 0x40, }; typedef struct gp_markup_glyph { /* unicode glyph */ uint32_t glyph; /* text format, bold, monospace, .... */ uint16_t fmt; } gp_markup_glyph; typedef struct gp_markup { uint32_t glyph_cnt; gp_markup_glyph glyphs[]; } gp_markup; void gp_markup_dump(gp_markup *self);