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:
parent
734cae7888
commit
67acb27062
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue