PatchworkOS  966e257
A non-POSIX operating system.
Loading...
Searching...
No Matches
font.c File Reference
#include "internal.h"
#include <stdlib.h>
#include <string.h>
#include <sys/io.h>
#include <stdio.h>
Include dependency graph for font.c:

Go to the source code of this file.

Functions

font_tfont_default (display_t *disp)
 
font_tfont_new (display_t *disp, const char *family, const char *weight, uint64_t size)
 
void font_free (font_t *font)
 
int16_t font_kerning_offset (const font_t *font, char firstChar, char secondChar)
 
uint64_t font_width (const font_t *font, const char *string, uint64_t length)
 
uint64_t font_height (const font_t *font)
 

Function Documentation

◆ font_default()

font_t * font_default ( display_t disp)

Definition at line 7 of file font.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ font_new()

font_t * font_new ( display_t disp,
const char *  family,
const char *  weight,
uint64_t  size 
)

Definition at line 17 of file font.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ font_free()

void font_free ( font_t font)

Definition at line 91 of file font.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ font_kerning_offset()

int16_t font_kerning_offset ( const font_t font,
char  firstChar,
char  secondChar 
)

Definition at line 99 of file font.c.

Here is the caller graph for this function:

◆ font_width()

uint64_t font_width ( const font_t font,
const char *  string,
uint64_t  length 
)

Definition at line 130 of file font.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ font_height()

uint64_t font_height ( const font_t font)

Definition at line 158 of file font.c.

Here is the caller graph for this function: