load fonts at runtime

This commit is contained in:
Alessandro Mauri 2023-03-04 18:54:00 +01:00
parent 30510ab69a
commit 93f93a594e
5 changed files with 87 additions and 36 deletions

View file

@ -38,6 +38,14 @@ void * ecalloc(unsigned long int nmemb, unsigned long int size)
return r;
}
void * erealloc(void *ptr, unsigned long int size)
{
void *r = realloc(ptr, size);
if (!r)
err(EXIT_FAILURE, "ralloc() of 0x%lx, to size %ld", (unsigned long)ptr, size);
return r;
}
void efree(void *ptr)
{