diff --git a/caca/codec/export.c b/caca/codec/export.c index 58f57f6..2670ad7 100644 --- a/caca/codec/export.c +++ b/caca/codec/export.c @@ -904,10 +904,13 @@ static void *export_svg(caca_canvas_t const *cv, size_t *bytes) continue; } - cur += sprintf(cur, "", - caca_attr_to_rgb12_fg(*lineattr++), + caca_attr_to_rgb12_fg(*lineattr), + (*lineattr & CACA_BOLD) ? " font-weight=\"bold\"" : "", + (*lineattr & CACA_ITALICS) ? " font-style=\"italic\"" : "", x * 6, (y * 10) + 8); + lineattr++; if(ch < 0x00000020) *cur++ = '?';