PatchworkOS
Loading...
Searching...
No Matches
font.h File Reference
#include "display.h"
#include <stdint.h>

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.

References display_t::defaultFont, mtx_lock(), mtx_unlock(), and display_t::mutex.

Referenced by draw_string(), draw_text(), and draw_text_multiline().

◆ font_free()

◆ font_height()

uint64_t font_height ( const font_t font)

◆ font_kerning_offset()

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

◆ font_new()

◆ font_width()