diff --git a/lime/text/TextLayout.hx b/lime/text/TextLayout.hx index 3a9352feb..99376ccc5 100644 --- a/lime/text/TextLayout.hx +++ b/lime/text/TextLayout.hx @@ -64,7 +64,7 @@ class TextLayout { if (__buffer == null) { - __buffer = Bytes.alloc (1); + __buffer = Bytes.alloc (text.length); //__buffer.endian = (System.endianness == BIG_ENDIAN ? "bigEndian" : "littleEndian"); }