1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-21 01:24:21 +00:00

Fixed an obscure iOS deadlock when loading custom type-faces

This commit is contained in:
hogliux 2017-02-07 12:01:25 +00:00
parent fbda56f168
commit 3cef6dcbdf

View file

@ -564,6 +564,13 @@ public:
CGDataProviderRef provider = CGDataProviderCreateWithCFData (cfData);
CFRelease (cfData);
#if JUCE_IOS
// Workaround for a an obscure iOS bug which can cause the app to dead-lock
// when loading custom type faces. See: http://www.openradar.me/18778790 and
// http://stackoverflow.com/questions/40242370/app-hangs-in-simulator
[UIFont systemFontOfSize: 12];
#endif
fontRef = CGFontCreateWithDataProvider (provider);
CGDataProviderRelease (provider);