Hi there,
I’m struggling to get Freetype working in JUCE so I’ve edited the Demo Audio Plugin to be capable of rendering freetype fonts:
This includes the FreeTypeAmalgam and Vinnie’s FreetypeFaces, and compiles and runs fine. However when running, the command:
FreeTypeFaces::addFaceFromMemory(7.f, 12.f, true, BinaryData::mine, BinaryData::mineSize);
fails to load the font, so the code reverts back to the default font. Would anyone be able to help get this simple example working? I’ve tried a couple of font files (one of which is included) but no luck… It seems that I’m getting error = 2 from the line:
error = FT_New_Memory_Face (m_ft->getLibrary(), (FT_Byte*)faceFileData, faceFileBytes, 0, &face);
If there is a simple solution for this I would be eternally grateful for suggestions (can comment here or pull request on github). Basically I’m trying to work out if it is an error with the code or with the font…
EDIT: note that I had to comment out the following lines to get it to compile:
#define FT_CONFIG_OPTION_USE_LZW
#define FT_CONFIG_OPTION_USE_ZLIB
Many thanks, Hemmer