1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-02-01 03:10:06 +00:00

OSX TextLayout maximum height fix.

This commit is contained in:
jules 2015-01-06 09:49:49 +00:00
parent 734cae7888
commit 67acb27062

View file

@ -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);