Add support for margin in autofit (textresize plugin).