1 #include <libchimara/glk.h>
8 /* Create user style before creating windows */
9 glk_stylehint_set(wintype_AllTypes, style_User1, stylehint_Size, -1);
10 glk_stylehint_set(wintype_AllTypes, style_User2, stylehint_Size, +1);
12 mainwin = glk_window_open(0, 0, 0, wintype_TextBuffer, 0);
15 glk_set_window(mainwin);
17 glk_set_style(style_User1);
18 glk_put_string("This text is in User1 and slightly smaller");
19 glk_set_style(style_Normal);
20 glk_put_string(".\n");
21 glk_set_style(style_User2);
22 glk_put_string("This text is in User2 and slightly larger");
23 glk_set_style(style_Normal);
24 glk_put_string(".\n");