Friday, December 30, 2005

Another help system teaser

5 comments:

  1. Slava, you really need to add leading to its text.

    ReplyDelete
  2. Can you elaborate? I know nothing about typography, having cargo-culted the text rendering by arranging the code so that it somewhat resembles what SDL_ttf does.

    ReplyDelete
  3. Anonymous4:36 PM

    leading would be "gaps between lines" (derived from lead strips put between lines on a mechanical typesetter, so the 'lead' is pronounced like the metal, with a short 'e').

    Basically, he's asking for a little whitespace padding surrounding the subsections so they don't make a jumbled mess bumping up against each other. Just a few pixels can make a big difference.

    ReplyDelete
  4. What our anonymous hero wrote.

    A good amount of leading would be approximately 20-30% of the height of one line, so if you had 12pt text, an appropriate line height would be approximately 15-16pt.

    ReplyDelete
  5. I highly recommend the book The Elements of Typographic Style, if you want a good guide.

    ReplyDelete