mindsnacks/moai-dev — pull request #64 by IkeBart (2014-02-27 01:32:59+00:00)
Title: Fixed issues with new lines that caused runtime errors in MOAIFreeTypeFont

I fixed issues regarding newline characters in strings so that the whole string gets displayed and there aren't any errors when freeing the glyph array. I also fixed the handling of the word break mode WORD_BREAK_CHAR and the case in WORD_BREAK_NONE where the token is too long to fit on a single line.

I did an analysis with the Leaks Instrument and found nothing on the Leaks graph on all six runs. The Allocations graph shows a spike during loop where MOAITextRenderer::_render() is called up to 5000 times. After the spike, the graph falls and settles at a level between 15 and 20 MB. If the loop is short (as in 50 times), the graph settles near the maximum, but a lower number of live bytes.