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"; |