{"id":235175,"date":"2015-11-25T10:02:32","date_gmt":"2015-11-25T17:02:32","guid":{"rendered":"http:\/\/css-tricks.com\/?page_id=235175"},"modified":"2020-04-25T05:34:17","modified_gmt":"2020-04-25T12:34:17","slug":"font-size-adjust","status":"publish","type":"page","link":"https:\/\/css-tricks.com\/almanac\/properties\/f\/font-size-adjust\/","title":{"rendered":"font-size-adjust"},"content":{"rendered":"\n

This property gives developers the ability to set the font-size<\/code> of an element depending on the size of its lowercase letters, rather than the uppercase letters.<\/p>\n\n\n\n

.element {\n  font-size: 22px;\n  font-size-adjust: .5;\n}<\/code><\/pre>\n\n\n\n

In this case the lowercase letters of the font would be 11px in height, since 22 x .5 = 11.<\/p>\n\n\n\n

When loading fonts there\u2019s likely to be a different aspect ratio between the lowercase letters of a fallback font and the newly loaded typeface, so font-size-adjust<\/code> is useful to control the amount of reflow when we declare a new font-family<\/code> and see the Flash of Unstyled Text (FOUT).<\/p>\n\n\n\n

In the demo below, it\u2019s possible to toggle this property on and off to show how a web font like Chaparral differs from the x-height and alignment of characters in Times, the fallback font. But beware, this property is only supported by a small number of browsers at the moment.<\/p>\n\n\n\n