ulrichard/ftgl — pull request #1 by corngood (2014-08-03 00:17:35+00:00)
Title: Fix for incorrect handling of empty lines in FTSimpleLayout

FTSimpleLayout doesn't handle consecutive \n properly. Rendering the string "foo\n\nfoo\nfoo" will result in:

foo
?foo?foo
foo
foo

The problem seems to be breakCharCount being -1 in this case, and OutputWrapped treats len < 0 as a request to render the rest of the string.