Skip to content

Commit

Permalink
Added font delete function.
Browse files Browse the repository at this point in the history
  • Loading branch information
Chukobyte committed May 16, 2024
1 parent 24f3be9 commit ac9f023
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions seika/rendering/font.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ SkaFont* ska_font_create_font_from_memory(void* buffer, usize bufferSize, int32
return font;
}

void ska_font_delete(SkaFont* font) {
SKA_MEM_FREE(font);
}

bool ska_generate_new_font_face(const char* fileName, FT_Face* face) {
if (ska_asset_file_loader_get_read_mode() == SkaAssetFileLoaderReadMode_ARCHIVE) {
SkaArchiveFileAsset fileAsset = ska_asset_file_loader_get_asset(fileName);
Expand Down
1 change: 1 addition & 0 deletions seika/rendering/font.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@ typedef struct SkaFont {

SkaFont* ska_font_create_font(const char* fileName, int32 size, bool applyNearestNeighbor);
SkaFont* ska_font_create_font_from_memory(void* buffer, usize bufferSize, int32 size, bool applyNearestNeighbor);
void ska_font_delete(SkaFont* font);
2 changes: 1 addition & 1 deletion seika/version_info.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@

#define SKA_VERSION_MAJOR 0
#define SKA_VERSION_MINOR 1
#define SKA_VERSION_PATCH 4
#define SKA_VERSION_PATCH 5

#define SKA_VERSION (SKA_MACRO_TO_STRING(SKA_VERSION_MAJOR) "." SKA_MACRO_TO_STRING(SKA_VERSION_MINOR) "." SKA_MACRO_TO_STRING(SKA_VERSION_PATCH))

0 comments on commit ac9f023

Please sign in to comment.