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

Function FontDebugPrintBitmap

engine/font/src/util.cpp:20–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18
19
20void FontDebugPrintBitmap(uint8_t* bitmap, int w, int h)
21{
22 printf("--------------------------------------------\n");
23 for (int j=0; j < h; ++j)
24 {
25 putchar('|');
26 for (int i=0; i < w; ++i)
27 {
28 putchar(" .:ioVM@"[bitmap[j*w+i]>>5]);
29 }
30 putchar('|');
31 putchar('\n');
32 }
33 printf("--------------------------------------------\n");
34}
35
36void* FontReadFile(const char* path, uint32_t* file_size)
37{

Callers 1

FontDebugFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected