The line breaking algorithm of TeX is well known in the literature, and you will surely find it under the hood of the most well-known proprietary DTP products. You can do really good looking things with Indesign or Quark too. TeX is just a bit more automatic as long as you match the use case.