Let's say that I'm using a non-system font (ex., PT Sans) for a CMS website. So what I do is, I'll include the font family of different styles (say, Regular, Italic and Bold) using @font-face. Then I would define the font-family of body
as PT Sans Regular
. All is well till now.
Then, my client for example, edits some text content in the website. He gives different font-styles to the text - like he boldens an important message and italicizes the name of locations. So altogether, he stylizes the content the way he likes. No problem with that too.
But, what the real question is, how will the website know that if there's a italicized text, it should use PT Sans Italic
instead of the regular version of the font, even if the body's
font is PT Sans Regular
?
I've been thinking about this for a while, but I can't find a solution for it.
Is there a possible solution for situations like this?