src/font.c

changeset 214
9d460888a83e
parent 198
916d2d125ecf
equal deleted inserted replaced
213:3d252dbd7c8e 214:9d460888a83e
31 #include "ascension/font.h" 31 #include "ascension/font.h"
32 32
33 #include <assert.h> 33 #include <assert.h>
34 #include <math.h> 34 #include <math.h>
35 #include <cx/array_list.h> 35 #include <cx/array_list.h>
36
37 void asc_font(enum AscFontStyle style, int size) {
38 asc_context.active_font.style = style;
39 asc_context.active_font.size = size;
40 }
41 36
42 static const char *asc_font_filename(enum AscFontStyle style) { 37 static const char *asc_font_filename(enum AscFontStyle style) {
43 switch (style) { 38 switch (style) {
44 case ASC_FONT_REGULAR: 39 case ASC_FONT_REGULAR:
45 return "OpenSans-Regular.ttf"; 40 return "OpenSans-Regular.ttf";

mercurial