Changeset View
Changeset View
Standalone View
Standalone View
sys/sys/font.h
Show First 20 Lines • Show All 85 Lines • ▼ Show 20 Lines | typedef struct vt_font_bitmap_data { | ||||
uint32_t vfbd_height; | uint32_t vfbd_height; | ||||
uint32_t vfbd_compressed_size; | uint32_t vfbd_compressed_size; | ||||
uint32_t vfbd_uncompressed_size; | uint32_t vfbd_uncompressed_size; | ||||
uint8_t *vfbd_compressed_data; | uint8_t *vfbd_compressed_data; | ||||
struct vt_font *vfbd_font; | struct vt_font *vfbd_font; | ||||
} vt_font_bitmap_data_t; | } vt_font_bitmap_data_t; | ||||
typedef enum { | typedef enum { | ||||
FONT_AUTO, | FONT_AUTO, /* This font is loaded by software */ | ||||
FONT_MANUAL, | FONT_MANUAL, /* This font is loaded manually by user */ | ||||
FONT_BOOT | FONT_BUILTIN, /* This font was built in at compile time */ | ||||
FONT_RELOAD /* This font is marked to be re-read from file */ | |||||
} FONT_FLAGS; | } FONT_FLAGS; | ||||
struct fontlist { | struct fontlist { | ||||
char *font_name; | char *font_name; | ||||
FONT_FLAGS font_flags; | FONT_FLAGS font_flags; | ||||
vt_font_bitmap_data_t *font_data; | vt_font_bitmap_data_t *font_data; | ||||
vt_font_bitmap_data_t *(*font_load)(char *); | vt_font_bitmap_data_t *(*font_load)(char *); | ||||
STAILQ_ENTRY(fontlist) font_next; | STAILQ_ENTRY(fontlist) font_next; | ||||
Show All 16 Lines |