From 67acb270628671b8a67c08c1d7d322745909f081 Mon Sep 17 00:00:00 2001 From: jules Date: Tue, 6 Jan 2015 09:49:49 +0000 Subject: [PATCH] OSX TextLayout maximum height fix. --- modules/juce_graphics/native/juce_mac_Fonts.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/juce_graphics/native/juce_mac_Fonts.mm b/modules/juce_graphics/native/juce_mac_Fonts.mm index 81a29a8047..3298e9ef1e 100644 --- a/modules/juce_graphics/native/juce_mac_Fonts.mm +++ b/modules/juce_graphics/native/juce_mac_Fonts.mm @@ -385,7 +385,7 @@ namespace CoreTextTypeLayout static void createLayout (TextLayout& glyphLayout, const AttributedString& text) { - const CGFloat boundsHeight = 1.0e6f; + const CGFloat boundsHeight = glyphLayout.getHeight(); CTFrameRef frame = createCTFrame (text, CGRectMake (0, 0, glyphLayout.getWidth(), boundsHeight)); CFArrayRef lines = CTFrameGetLines (frame);