title: Arrange letters of a sentence in a minimum area?
body: <p>I'm going to write a program that rearranges letters of a sentence in a minimum area. The tool that I'm going to write this app is not important. The problem is that I nearly have no idea how I can do this.</p>
  
  <p>I want something like this : </p>
  
  <p><img src="https://i.stack.imgur.com/UyiMk.jpg" alt="enter image description here"></p>
  
  <p>Is there any algorithm to sort some surfaces (let's suppose each letter a polygon surface) in a minimum area?</p>