MCPcopy Create free account
hub / github.com/defold/defold / FontLoadFromMemoryTTF

Function FontLoadFromMemoryTTF

engine/font/src/font_ttf.cpp:187–190  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

185static HFont LoadTTFInternal(const char* path, const void* buffer, uint32_t buffer_size, bool allocate);
186
187HFont FontLoadFromMemoryTTF(const char* path, const void* buffer, uint32_t buffer_size, bool allocate)
188{
189 return LoadTTFInternal(path, buffer, buffer_size, allocate);
190}
191
192#if defined(FONT_USE_HARFBUZZ)
193static int LoadHBFont(TTFFont* font, void* buffer, uint32_t buffer_size)

Callers 1

FontLoadFromMemoryFunction · 0.85

Calls 1

LoadTTFInternalFunction · 0.85

Tested by

no test coverage detected