52 memset(&asc_context, 0, sizeof(AscContext)); |
52 memset(&asc_context, 0, sizeof(AscContext)); |
53 |
53 |
54 // initialize the font cache |
54 // initialize the font cache |
55 asc_font_cache_init(); |
55 asc_font_cache_init(); |
56 |
56 |
57 // set a default font, but do not load it |
57 // set a default font but do not load it |
58 asc_context.active_font.style = ASC_FONT_REGULAR; |
58 asc_context.active_font.style = ASC_FONT_REGULAR; |
59 asc_context.active_font.size = 14; |
59 asc_context.active_font.size = 14; |
60 |
60 |
61 // no window, yet |
61 // no window, yet |
62 asc_context.active_window = ASC_MAX_WINDOWS; |
62 asc_context.active_window = ASC_MAX_WINDOWS; |