I pulled a random .ttf file off the internet to try and embedd it in preperation for the real custom font that we will end up using. I searched on here for how to embedd the font within the program, and ended up doing the following after using the introjucer to convert the .ttf to a data array.
MemoryInputStream mis(BinaryData::arial_ttf, BinaryData::arial_ttfSize, false); Typeface* testTypeface = new CustomTypeface(mis); testFont = new Font(testTypeface); //program breaks here testFont->setHeight(10.0f);
the program breaks at the assert “jassert (typefaceName.isNotEmpty());” so I assume the custom typeface is not getting initialised correctly. If I continue past the break the program will run and display the default font with the top broken off a bit. Where am I going wrong?