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/sysbin/terminal | |
parent | 0b583122fb6cfcff991c54836d37cb3958c343b1 (diff) | |
download | kogata-1161e1d8be014945266017cb0ce735537a287677.tar.gz kogata-1161e1d8be014945266017cb0ce735537a287677.zip |
Truetype fonts
Diffstat (limited to 'src/sysbin/terminal')
-rw-r--r-- | src/sysbin/terminal/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sysbin/terminal/main.c b/src/sysbin/terminal/main.c index 13f39ca..4805f9d 100644 --- a/src/sysbin/terminal/main.c +++ b/src/sysbin/terminal/main.c @@ -101,7 +101,7 @@ int main(int argc, char **argv) { term.kb = init_keyboard(); ASSERT(term.kb != 0); - term.font = g_load_font("sys:/fonts/default.bf"); + term.font = g_load_ascii_bitmap_font("sys:/fonts/default.bf"); ASSERT(term.font != 0); term.cw = g_text_width(term.font, "#"); term.ch = g_text_height(term.font, "#"); @@ -138,7 +138,7 @@ void term_draw_c(term_t *t, int l, int c) { if (t->fb) { g_fillrect(t->fb, c * t->cw, l * t->ch, t->cw, t->ch, bg); - g_write(t->fb, c * t->cw, l * t->ch, ss, t->font, t->fg); + g_write(t->fb, c * t->cw, l * t->ch, ss, t->font, 16, t->fg); } } |