The font-style CSS property allows italic or oblique faces to be selected.
object.style.fontStyle = "value";
<'font-style'> = normal | italic | oblique <angle>?
Matches against a face that is classified as a normal face, one that is neither italic or obliqued.
Matches against a font that is labeled as an italic face, or an oblique face if one does not exist.
Controls matching against an oblique face. Positive angles represent a clockwise slant; negative angles represent a counter-clockwise slant.
Degrees. There are 360 degrees in a full circle.
Gradians, also known as "gons" or "grades". There are 400 gradians in a full circle.
Radians. There are 2p radians in a full circle.
Turns. There is 1 turn in a full circle.
© 2021 Osbo Design