[Guide] Juce Font Embedding (2019)

If you use wither the Projcuer assets or the BinaryBuilder provided in the JUCE extras, then you can embed any assets into cpp files.

The cpp files look like that below

//BinaryFonts.hpp
namespace BinaryFonts {
	extern const char *Font_ttf; // this reflects the file name
	const int          Font_ttfSize = 804612;
}
_______________________________________________
//BinaryFonts.cpp
#include "BinaryFonts.hpp"

static const unsigned char temp2[] = {0,1,19,...};


const char *BinaryFonts::Font_ttf = (const char *)temp1;