mirror of
https://github.com/memononen/nanovg
synced 2026-09-26 16:19:07 +03:00
commit
5f65b43f7a
1 changed files with 4 additions and 5 deletions
|
|
@ -161,6 +161,10 @@ typedef struct FONSttFontImpl FONSttFontImpl;
|
|||
|
||||
#define STB_TRUETYPE_IMPLEMENTATION
|
||||
|
||||
static void* fons__tmpalloc(size_t size, void* up);
|
||||
static void fons__tmpfree(void* ptr, void* up);
|
||||
#define STBTT_malloc(x,u) fons__tmpalloc(x,u)
|
||||
#define STBTT_free(x,u) fons__tmpfree(x,u)
|
||||
#include "stb_truetype.h"
|
||||
|
||||
struct FONSttFontImpl {
|
||||
|
|
@ -392,11 +396,6 @@ int fons__tt_getGlyphKernAdvance(FONSttFontImpl *font, int glyph1, int glyph2)
|
|||
|
||||
#else
|
||||
|
||||
static void* fons__tmpalloc(size_t size, void* up);
|
||||
static void fons__tmpfree(void* ptr, void* up);
|
||||
#define STBTT_malloc(x,u) fons__tmpalloc(x,u)
|
||||
#define STBTT_free(x,u) fons__tmpfree(x,u)
|
||||
|
||||
int fons__tt_init(FONScontext *context)
|
||||
{
|
||||
FONS_NOTUSED(context);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue