12 lines
410 B
C
12 lines
410 B
C
#include "fb_text.h"
|
|
#include "kfont.h"
|
|
#include "fb.h"
|
|
|
|
void fb_text_render_char(int c, int x, int y, uint8_t r, uint8_t g, uint8_t b)
|
|
{
|
|
const fontgen_char_info_t * char_info = kfont.char_infos[c];
|
|
y += kfont.line_height - kfont.baseline_offset - char_info->top;
|
|
x += char_info->left;
|
|
fb_blend_alpha8(char_info->bitmap, char_info->width, char_info->height, char_info->width, x, y, r, g, b);
|
|
}
|