I have a website that uses one Latin and one Arabic font (Adobe Typekit fonts).
The dynamically generated text (p) is in Italics and sometimes is written in Latin and sometimes in Arabic.
So I have a CSS rule:
p {
font-family: "Arno-Pro", "Athelas-Arabic", serif;
font-style: italic;
}
The problem is that the Arabic font does not have italic characters, as Arabic is a language that is written with font-style: normal; so instead of using the Arabic font, it falls back to ugly system font.
For demonstration purposes to make it simpler, imagine that I have this line of text:
<p> Lorem ipsum لكن لا بد </p>
How can I target the Latin letters to be loaded as italics and the arabic letters to be loaded normal?
Note: The text is generated dynamically and cannot use custom markup within.