From 533345302e16ff8b485cc719d6bf8c1f5d043445 Mon Sep 17 00:00:00 2001 From: pommicket Date: Tue, 18 Jul 2023 12:05:33 -0400 Subject: an initial draft of the new font rendering --- stb_truetype.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'stb_truetype.c') diff --git a/stb_truetype.c b/stb_truetype.c index 2df7a90..07af6b9 100644 --- a/stb_truetype.c +++ b/stb_truetype.c @@ -1,4 +1,4 @@ -// used for debug build to speed things up +// used to speed things up for debug build // just exports everything in stb_truetype.h @@ -17,7 +17,14 @@ #define no_warn_end #endif +#if !DEBUG +#define STBTT_STATIC +#define STBRP_STATIC +#endif #define STB_TRUETYPE_IMPLEMENTATION +#define STB_RECT_PACK_IMPLEMENTATION + no_warn_start +#include "lib/stb_rect_pack.h" #include "lib/stb_truetype.h" no_warn_end -- cgit v1.2.3