Turnstone Operating System
Loading...
Searching...
No Matches
font.64.c File Reference

Font library implementation. More...

#include <graphics/font.h>
#include <utils.h>
#include <memory.h>

Functions

 MODULE ("turnstone.kernel.graphics.font")
 
static wchar_t font_lookup_unicode (wchar_t wc)
 
static void font_print_glyph_with_stride_raw (wchar_t wc, color_t foreground, color_t background, uint8_t *font_address, pixel_t *base_address, uint32_t x, uint32_t y, uint32_t stride, uint32_t font_width, uint32_t font_height, uint32_t font_bytes_per_glyph, uint32_t font_bytes_perline, uint32_t font_mask)
 
void font_print_glyph_with_stride (wchar_t wc, color_t foreground, color_t background, pixel_t *destination_base_address, uint32_t x, uint32_t y, uint32_t stride)
 
static void video_build_font_table (font_psf2_t *font)
 
font_table_tfont_get_font_table (void)
 
int8_t font_init (void)
 
wchar_t font_get_wc (const char_t *string, int64_t *idx)
 
void font_get_font_dimension (uint32_t *width, uint32_t *height)
 
void font_dump_colored_font (pixel_t *dst, color_t background, color_t foreground)
 

Variables

font_psf2_t font_psf2_data_start
 
font_psf2_t font_psf2_data_end
 
static uint8_tFONT_ADDRESS = NULL
 
static int32_t FONT_WIDTH = 0
 
static int32_t FONT_HEIGHT = 0
 
static int32_t FONT_BYTES_PER_GLYPH = 0
 
static uint32_t FONT_MASK = 0
 
static uint32_t FONT_BYTES_PERLINE = 0
 
static const uint32_t FONT_TABLE_COLUMNS = 32
 
static uint32_t FONT_TABLE_GLYPH_COUNT = 0
 
static font_table_tfont_table = NULL
 
static wchar_tfont_unicode_table = NULL
 

Detailed Description

Font library implementation.

This work is licensed under TURNSTONE OS Public License. Please read and understand latest version of Licence.