increase buffer size of TextLayout to roughly match the length of the text, saves buffer resizing later

This commit is contained in:
Lars Doucet
2017-03-22 15:43:42 -05:00
committed by Joshua Granick
parent 29e029203a
commit 923a89841e

View File

@@ -64,7 +64,7 @@ class TextLayout {
if (__buffer == null) { if (__buffer == null) {
__buffer = Bytes.alloc (1); __buffer = Bytes.alloc (text.length);
//__buffer.endian = (System.endianness == BIG_ENDIAN ? "bigEndian" : "littleEndian"); //__buffer.endian = (System.endianness == BIG_ENDIAN ? "bigEndian" : "littleEndian");
} }