diff --git a/build/macosx/platform_specific_code/juce_mac_Fonts.cpp b/build/macosx/platform_specific_code/juce_mac_Fonts.cpp index 22e8da2ea5..27825fa041 100644 --- a/build/macosx/platform_specific_code/juce_mac_Fonts.cpp +++ b/build/macosx/platform_specific_code/juce_mac_Fonts.cpp @@ -398,6 +398,9 @@ void Typeface::initialiseTypefaceCharacteristics (const String& fontName, bool italic, bool addAllGlyphsToFont) throw() { + // This method is only safe to be called from the normal UI thread.. + jassert (MessageManager::getInstance()->isThisTheMessageThread()); + ATSFontHelper* const helper = ATSFontHelperCache::getInstance() ->getFont (fontName, bold, italic); @@ -419,6 +422,9 @@ void Typeface::initialiseTypefaceCharacteristics (const String& fontName, bool Typeface::findAndAddSystemGlyph (juce_wchar character) throw() { + // This method is only safe to be called from the normal UI thread.. + jassert (MessageManager::getInstance()->isThisTheMessageThread()); + ATSFontHelper* const helper = ATSFontHelperCache::getInstance() ->getFont (getName(), isBold(), isItalic());