wrapped_text->line[wrapped_text->num_lines].text = getStringCopy(buffer);
wrapped_text->line[wrapped_text->num_lines].font_nr = font_nr;
wrapped_text->line[wrapped_text->num_lines].centered = centered;
+
+ wrapped_text->total_height += getFontHeight(font_nr) + wrapped_text->line_spacing;
wrapped_text->num_lines++;
}
wrapped_text->max_height = max_height;
wrapped_text->line_spacing = line_spacing;
wrapped_text->mask_mode = mask_mode;
+ wrapped_text->total_height = 0;
wrapped_text->num_lines = 0;
buffer[0] = '\0';
// number of wrapped lines
int num_lines;
+ // total height of all lines
+ int total_height;
+
// internal info for processing lines
int line_width, cut_length, max_height;
int line_spacing, mask_mode;