Browse Source

Fixed an error when JUCE_CORETEXT_AVAILABLE = 0

tags/2021-05-28
jules 11 years ago
parent
commit
25fe7c8490
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      modules/juce_graphics/native/juce_mac_Fonts.mm

+ 5
- 0
modules/juce_graphics/native/juce_mac_Fonts.mm View File

@@ -1230,7 +1230,12 @@ Typeface::Ptr Typeface::createSystemTypefaceFor (const Font& font)
Typeface::Ptr Typeface::createSystemTypefaceFor (const void* data, size_t dataSize)
{
#if JUCE_CORETEXT_AVAILABLE
return new OSXTypeface (data, dataSize);
#else
jassertfalse; // You need CoreText enabled to use this feature!
return nullptr;
#endif
}
void Typeface::scanFolderForFonts (const File&)


Loading…
Cancel
Save