forked from smcameron/space-nerds-in-space
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsnis_typeface.c
21 lines (18 loc) · 1 KB
/
snis_typeface.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include "snis_font.h"
#define SNIS_TYPEFACE_DECLARE_GLOBALS
#include "snis_typeface.h"
#undef SNIS_TYPEFACE_DECLARE_GLOBALS
void snis_typefaces_init(void)
{
/* Make the line segment lists from the stroke_t structures. */
snis_make_font(&gamefont[BIG_FONT], font_scale[BIG_FONT], font_scale[BIG_FONT]);
snis_make_font(&gamefont[SMALL_FONT], font_scale[SMALL_FONT], font_scale[SMALL_FONT]);
snis_make_font(&gamefont[TINY_FONT], font_scale[TINY_FONT], font_scale[TINY_FONT]);
snis_make_font(&gamefont[NANO_FONT], font_scale[NANO_FONT], font_scale[NANO_FONT]);
snis_make_font(&gamefont[PICO_FONT], font_scale[PICO_FONT], font_scale[PICO_FONT]);
font_lineheight[BIG_FONT] = snis_font_lineheight(font_scale[BIG_FONT]);
font_lineheight[SMALL_FONT] = snis_font_lineheight(font_scale[SMALL_FONT]);
font_lineheight[TINY_FONT] = snis_font_lineheight(font_scale[TINY_FONT]);
font_lineheight[NANO_FONT] = snis_font_lineheight(font_scale[NANO_FONT]);
font_lineheight[PICO_FONT] = snis_font_lineheight(font_scale[PICO_FONT]);
}