Changeset 620 for libcaca/trunk


Ignore:
Timestamp:
Mar 15, 2006, 5:55:40 PM (15 years ago)
Author:
Jean-Yves Lamoureux
Message:
  • Added preliminary (but working) SVG exporter
Location:
libcaca/trunk/cucul
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/cucul/Makefile.am

    r602 r620  
    2121        export_html.c \
    2222        export_ps.c \
     23        export_svg.c \
    2324        $(NULL)
    2425libcucul_la_LDFLAGS = -no-undefined
  • libcaca/trunk/cucul/cucul.c

    r609 r620  
    299299            _cucul_get_ps(qq, ex);
    300300            break;
     301        case CUCUL_FORMAT_SVG:
     302            _cucul_get_svg(qq, ex);
     303            break;
    301304        default:
    302305            free(ex);
  • libcaca/trunk/cucul/cucul.h

    r609 r620  
    6262    CUCUL_FORMAT_IRC = 3, /**< Export to text with mIRC colours. */
    6363    CUCUL_FORMAT_PS = 4, /**< Export to PostScript. */
     64    CUCUL_FORMAT_SVG = 5, /**< Export to Scalable Vector Graphics format. */
    6465};
    6566
  • libcaca/trunk/cucul/export_html.c

    r609 r620  
    8989                    cur += sprintf(cur, "&nbsp;");
    9090                else
    91                     cur += sprintf(cur, "%c", linechar[x + len] & 0x7f);
     91                    cur += sprintf(cur, "%c", linechar[x] & 0x7f);
    9292            }
    9393            cur += sprintf(cur, "</span>");
  • libcaca/trunk/cucul/export_ps.c

    r609 r620  
    140140    ex->size = strlen(ex->buffer) + 1;
    141141    ex->buffer = realloc(ex->buffer, ex->size);
     142
    142143}
    143144
Note: See TracChangeset for help on using the changeset viewer.