summaryrefslogtreecommitdiffstats
path: root/lib/psf.h
blob: b6b8ceca32ef986a6cc0d7e61105b6593dc3c407 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef _JOVE_LIB_PSF_H
#define _JOVE_LIB_PSF_H 1

#include <stddef.h>
#include <stdint.h>

#define PSF1_FONT_MAGIC 0x0436

struct psf1_header
{
    uint16_t magic;
    uint8_t mode;
    uint8_t char_height;
    uint8_t bitmap[];
};

uint8_t *psf_glyph(struct psf1_header *header, uint8_t glyph);

#endif