fitting to labels wrt height works by measuring text size in html document