This repository has been archived on 2022-05-21. You can view files and clone it, but cannot push or open issues or pull requests.
LEFTONE/util/glyphas/context.c

22 lines
371 B
C
Raw Permalink Normal View History

#include "./context.h"
#include <assert.h>
#include <stddef.h>
#include <ft2build.h>
#include FT_FREETYPE_H
void glyphas_context_initialize(glyphas_context_t* ctx) {
assert(ctx != NULL);
*ctx = (typeof(*ctx)) {0};
FT_Init_FreeType(&ctx->ft);
}
void glyphas_context_deinitialize(glyphas_context_t* ctx) {
assert(ctx != NULL);
FT_Done_FreeType(ctx->ft);
}