New line in Text

40 views
Skip to first unread message

Dave Tapley

unread,
Jun 16, 2018, 5:12:26 AM6/16/18
to Haskell Gloss
Just to confirm:
New lines are stripped when passed to Text, and that's by design, right?

Ben Lippmeier

unread,
Jun 18, 2018, 8:49:56 AM6/18/18
to haskel...@googlegroups.com

On 14 Jun 2018, at 8:56 am, Dave Tapley <duke...@gmail.com> wrote:

Just to confirm:
New lines are stripped when passed to Text, and that's by design, right?

I think that was done because gloss doesn’t know for sure how tall the characters are, so doesn’t know where to put the next line. The text support is very primitive. Text is drawn using a GLUT vector font, and it has no metadata like character size or kerning.

Ben.


Reply all
Reply to author
Forward
0 new messages