1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-02-08 04:20:09 +00:00

macOS/iOS: Continue to use text layout fallback for fonts loaded from memory

You can override this by defining JUCE_FORCE_USE_NATIVE_TEXT_LAYOUT_FOR_MEMORY_FONTS=1
This commit is contained in:
hogliux 2018-04-24 10:17:46 +01:00
parent 8782bdd6ba
commit 58f88ffeb8

View file

@ -815,12 +815,12 @@ Typeface::Ptr Font::getDefaultTypefaceForFont (const Font& font)
// fallback layout algorithm.
static bool canAllTypefacesBeUsedInLayout (const AttributedString& text)
{
#if JUCE_MAC && defined (MAC_OS_X_VERSION_10_11) && MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_11
#if JUCE_MAC && defined (MAC_OS_X_VERSION_10_11) && MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_11 && JUCE_FORCE_USE_NATIVE_TEXT_LAYOUT_FOR_MEMORY_FONTS
ignoreUnused (text);
return true;
#else
#if JUCE_MAC
#if JUCE_MAC && JUCE_FORCE_USE_NATIVE_TEXT_LAYOUT_FOR_MEMORY_FONTS
if (SystemStats::getOperatingSystemType() >= SystemStats::OperatingSystemType::MacOSX_10_11)
return true;
#endif