diff options
author | Alex Auvolat <alex@adnab.me> | 2017-05-03 20:37:59 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2017-05-03 20:37:59 +0200 |
commit | 1161e1d8be014945266017cb0ce735537a287677 (patch) | |
tree | 118f2201a5e12f79aefb404295794eed0d52cd6d /src/lib/include/kogata/draw.h | |
parent | 0b583122fb6cfcff991c54836d37cb3958c343b1 (diff) | |
download | kogata-1161e1d8be014945266017cb0ce735537a287677.tar.gz kogata-1161e1d8be014945266017cb0ce735537a287677.zip |
Truetype fonts
Diffstat (limited to 'src/lib/include/kogata/draw.h')
-rw-r--r-- | src/lib/include/kogata/draw.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/include/kogata/draw.h b/src/lib/include/kogata/draw.h index 1f12389..470ab4c 100644 --- a/src/lib/include/kogata/draw.h +++ b/src/lib/include/kogata/draw.h @@ -58,14 +58,15 @@ void g_scroll_up(fb_t *fb, int l); // ---- Text manipulation -font_t *g_load_font(const char* filename); +font_t *g_load_ascii_bitmap_font(const char* filename); +font_t *g_load_ttf_font(const char* filename); void g_incref_font(font_t *f); void g_decref_font(font_t *f); int g_text_width(font_t *f, const char* text); int g_text_height(font_t *f, const char* text); -void g_write(fb_t *fb, int x, int y, const char* text, font_t *font, color_t c); +void g_write(fb_t *fb, int x, int y, const char* text, font_t *font, int size, color_t c); /* vim: set ts=4 sw=4 tw=0 noet :*/ |