font-style - CSS | css font-style
Thefont-styleCSS[1]propertysetswhetherafontshouldbestyledwithanormal,italic,orobliquefacefromitsfont-family[2].ThesourceforthisinteractiveexampleisstoredinaGitHubrepository.Ifyoudliketocontributetotheinteractiveexamplesproject,pleaseclonehttps://github.com/mdn/interactive-examples[3]andsendusapullrequest.Italicfontfacesaregenerallycursiveinnature,usuallyusinglesshorizontalspacethantheirunstyledcounterparts,whileobliquefacesareusuallyjustslopedversionsoftheregularface.Whenthespecifiedstyleisn...
The font-style CSS[1] property sets whether a font should be styled with a normal, italic, or oblique face from its font-family[2].
The source for this interactive example is stored in a GitHub repository. If youd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples[3] and send us a pull request.
Italic font faces are generally cursive in nature, usually using less horizontal space than their unstyled counterparts, while oblique faces are usually just sloped versions of the regular face. When the specified style is not available, both italic and oblique faces are simulated by artificially sloping the glyphs of the regular face (use font-synthesis[4] to control this behavior).
font-style: normal; font-style: italic; font-style: oblique; font-style: oblique 10deg; font-style: inherit; font-style: initial; font-style: unset;The font-style property is specified as a single keyword c...