Have you ever wanted to draw fully justified text (ie, text that adheres to both the left and right sides of the destination rectangle)? It's more complicated than it seems, and there's definitely no inbuilt support in the VCL. But here's how to do it, including an open-source unit you can drop into your applications and use.

Have you ever wanted to draw fully justified text (ie, text that adheres to both the left and right sides of the destination rectangle)? It's more complicated than it seems, and there's definitely no inbuilt support in the VCL. But here's how to do it, including an open-source unit you can drop into your applications and use.
http://parnassus.co/?p=439

Comments

  1. Jeroen Wiert Pluimers We're used to that, in fact we expect it, when reading books or newspapers. Why not onscreen? (I can think of a few possible answers, mostly to do with text onscreen being much shorter, whereas books and newspapers have large amounts of text, and only text, visible. But it's something I've asked myself.)

    ReplyDelete
  2. David Millington the way most UIs cope with grids, rectangles and such is by means of colour. Not always the best way either, but usually better than fully justified text.

    ReplyDelete

Post a Comment