#include <acknex.h>
TEXT* txttest =
{
flags = SHOW;
string("line1\nline2", "line3", "line4");
}
function txt_height(TEXT* text)
{
int i = 0, linecount = 0;
for(i = 0; i < text->strings; i++)
{
linecount += *(text->pstring)[i]->pad;
}
return text->font->dy * linecount;
}
function main() {
//4 lines * 9 pixels = 36 pixels height
printf("%i", (int)txt_height(txttest));
}