scale h2 and h4 based on window size