title: How to define "boxes" on a picture and fill them with text?
body: <p>I have predefined print samples provided by an insurance company.  They do not accept prints in any other format.  I have to write an app that should be able to fill in those forms/samples.</p>
  
  <p>I have decided to scan samples and fill them with some image library, and here is my problem ;)</p>
  
  <p>The data to fill in forms is often too "large" to fit into "fill box".  I would like to automatically determine the size of the font used to fit the data into the box, or even break data in two or more lines.</p>
  
  <p>My questions:</p>
  
  <ul>
  <li>Is there any image library that will be able to do this or do I have to write all that logic from scratch?  </li>
  <li>Maybe I have to solve this problem in other way?</li>
  </ul>