mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Fixed an error when JUCE_CORETEXT_AVAILABLE = 0
This commit is contained in:
parent
80387e8cb5
commit
25fe7c8490
1 changed files with 5 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue