Browse Source

Avoided an OSX font bug workaround that's no longer needed in 10.11, and also stripped out a huge amount of defunct OSX 10.5 font code

tags/2021-05-28
jules 7 years ago
parent
commit
2e0f6b5dbc
2 changed files with 181 additions and 577 deletions
  1. +0
    -5
      modules/juce_graphics/native/juce_mac_CoreGraphicsContext.mm
  2. +181
    -572
      modules/juce_graphics/native/juce_mac_Fonts.mm

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

@@ -665,13 +665,8 @@ void CoreGraphicsContext::drawGlyph (int glyphNumber, const AffineTransform& tra
bool CoreGraphicsContext::drawTextLayout (const AttributedString& text, const Rectangle<float>& area)
{
#if JUCE_CORETEXT_AVAILABLE
CoreTextTypeLayout::drawToCGContext (text, area, context, (float) flipHeight);
return true;
#else
ignoreUnused (text, area);
return false;
#endif
}
CoreGraphicsContext::SavedState::SavedState()


+ 181
- 572
modules/juce_graphics/native/juce_mac_Fonts.mm
File diff suppressed because it is too large
View File


Loading…
Cancel
Save