From 1161e1d8be014945266017cb0ce735537a287677 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Wed, 3 May 2017 20:37:59 +0200 Subject: Truetype fonts --- src/sysbin/terminal/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/sysbin/terminal/main.c') 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); } } -- cgit v1.2.3