From 23984e8370816c3f324af6ae58172c7be9ada32f Mon Sep 17 00:00:00 2001 From: Ben Visness Date: Wed, 28 Jun 2023 20:44:13 -0500 Subject: [PATCH] Enable font stuff in Orca --- src/graphics_common.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/graphics_common.c b/src/graphics_common.c index e36d264..10b3cb8 100644 --- a/src/graphics_common.c +++ b/src/graphics_common.c @@ -17,10 +17,8 @@ #endif #include"stb_image.h" -#if !PLATFORM_ORCA - #define STB_TRUETYPE_IMPLEMENTATION - #include"stb_truetype.h" -#endif +#define STB_TRUETYPE_IMPLEMENTATION +#include"stb_truetype.h" #include"platform/platform_log.h" #include"platform/platform_assert.h" @@ -408,8 +406,6 @@ mg_font_data* mg_font_data_from_handle(mg_font handle) return(data); } -#if !PLATFORM_ORCA - mg_font mg_font_create_from_memory(u32 size, byte* buffer, u32 rangeCount, unicode_range* ranges) { if(!__mgData.init) @@ -602,8 +598,6 @@ void mg_font_destroy(mg_font fontHandle) mg_handle_recycle(fontHandle.h); } } -#endif // !PLATFORM_ORCA - str32 mg_font_get_glyph_indices_from_font_data(mg_font_data* fontData, str32 codePoints, str32 backing) {