I have a custom design system where i have typogra...
# compose-android
r
I have a custom design system where i have typography defined. For english i would require one font family and for other languages i would require noto sans. What is the best way to handle this?. Referring to this https://developer.android.com/develop/ui/compose/designsystems/custom
Ok. i found a SO answer. Not sure if this is right. If i have more locales i would end up adding more conditions. Any thoughts on this??
Copy code
Font(
                if (Locale.current.language == "en") R.font.regular_ar else R.font.regular_en,
                R.font.notosans_bold,  FontWeight.Bold)