Changed rendering to use strings instead of a characters

This commit is contained in:
Sam Lown 2010-06-11 17:25:41 +02:00
parent e79076a218
commit 2cea2399d9
3 changed files with 56 additions and 85 deletions

View file

@ -30,16 +30,17 @@ struct zint_render_line {
struct zint_render_line *next; /* Pointer to next line */
};
struct zint_render_char {
struct zint_render_string {
float x, y, fsize;
char c;
struct zint_render_char *next; /* Pointer to next character */
float width; /* Suggested string width, may be 0 if none recommended */
char *text;
struct zint_render_string *next; /* Pointer to next character */
};
struct zint_render {
float width, height;
struct zint_render_line *lines; /* Pointer to first line */
struct zint_render_char *chars; /* Pointer to first character */
struct zint_render_string *strings; /* Pointer to first string */
};
struct zint_symbol {