My language learning app needs to support a lot of languages and text paragraphs containing 2 different languages are not uncommon. (e.g. German grammar explained in Arabic)
Now, I want to integrate a custom font to make the design unique and consistent across multiple platforms (iOS, Android, Web), but there is basically no single Font that supports all languages.
The question is:
What is the recommended way of implementing that on the code level in SwiftUI
?
If I just hardcode:
.font(Font.custom("myFont", size: 16))
then I guess it is not gonna work if the text contains a language not supported by my custom font.
The Apple's default font seems to handle all languages perfectly, even if they are mixed together and I'd like to have something like that, but with a custom font.
Specifically, I'd like to integrate FF Din
font:
https://www.myfonts.com/fonts/fontfont/ff-din/
with supported Languages: Western Europe, Vietnamese, Central/Eastern Europe, Baltic, Turkish, Romanian, Cyrillic, Greek
So I am wondering what I would do about Chinese, Arabic, etc.
Thanks