Garkader

Members
  • Content count

    1
  • Joined

  • Last visited

Community Reputation

122 Neutral

About Garkader

  • Rank
    Newbie
  1. for reference: Using SDL_ttf with OpenGL

    @kaolin fire function Font::textSize is not handling newlines properly. The first condition in the while loop should be corrected to something like: if (((minGlyph <= *text) && (*text <= maxGlyph)) || *text == '\n') instead of if ((minGlyph <= *text) && (*text <= maxGlyph)) Otherwise '\n' won't be processed.