PatchworkOS  966e257
A non-POSIX operating system.
Loading...
Searching...
No Matches
font.h File Reference
#include "display.h"
#include <stdint.h>
Include dependency graph for font.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef struct font font_t
 

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)
 

Typedef Documentation

◆ font_t

typedef struct font font_t

Definition at line 15 of file font.h.

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: