#include <tscope.h>
void print_some_text()
{
int w, h;
ts_fgcolor(RED);
w = ts_printf(100, 100, "this piece of text ");
ts_fgcolor(WHITE);
h = ts_textheight();
ts_printf(100 + w, 100, "is %d pixels long", w);
ts_printf(100, 100 + h * 2, "and %d pixels high", h);
}
int main()
{
ts_scrsize(SIZE1);
ts_init();
ts_coordinates(STANDARD);
ts_printf_centre(SXMAX / 2, 20, "standard font:");
print_some_text();
ts_button(SXMAX - 20, SYMAX - 20);
ts_clrscr();
ts_font(ARIAL, 20, BOLD);
ts_printf_centre(SXMAX / 2, 20, "Arial 20 bold font:");
print_some_text();
ts_button(SXMAX - 20, SYMAX - 20);
return 0;
}
END_OF_MAIN();