I was recently asked to create a very odd "buffer" around several line features.  I'm not sure if this is innately possible with an ArcGIS Advanced license or not and therefore am willing to explore other solutions such as QGIS.  I am proficient in ArcPy, so please include any ArcGIS scripting solutions as well.

I have been given a set of lines that have a field called "Acreage".  The ultimate goal would be to generate polygons around each line that have the area of the "Acreage" field.  So, when considering the available data...  I have the length of each line and the area that each final polygon should be.  This alone doesn't seem like it should be to difficult to come up with a formula to calculate the buffer distance, especially if we were to assume each line is straight (though they are not straight, this might be the best I could do).  However, to make matters even more complicated those who asked for this would like to see the final result as "bent" rectangles.  The image below shows a mock-up of what they would like to see.   

[![enter image description here][1]][1]     


  [1]: https://i.sstatic.net/gJpxE.png

In the Image the red line is the starting data and the green "buffer" is what needs to be generated from each line.

The key elements are that the "buffer" needs to have the designated area(one of the line attributes) and also needs to have **90 degree corners**.

If getting the corners is much more difficult or not possible.  I would also be happy with a solution that just creates a "normal" rounded buffer that contains the right area.