ok, i think i fixed text height calculation finally