Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only apply tafseer font to Arabic tafaseer #1258

Merged
merged 1 commit into from
Jan 21, 2020

Conversation

ahmedre
Copy link
Contributor

@ahmedre ahmedre commented Jan 21, 2020

Previously, due to QuranUtils.doesStringContainArabic method returning
true for languages like Urdu and others that share some of the Arabic
characters in the ranges that were checked, an Arabic font was set for
any such language. This consequently broke many non-Arabic RTL languages
on versions above 21.

This patch fixes it by only applying the font to Arabic tafaseer, while
still gracefully handling RTL otherwise. Fixes #1255.

Previously, due to QuranUtils.doesStringContainArabic method returning
true for languages like Urdu and others that share some of the Arabic
characters in the ranges that were checked, an Arabic font was set for
any such language. This consequently broke many non-Arabic RTL languages
on versions above 21.

This patch fixes it by only applying the font to Arabic tafaseer, while
still gracefully handling RTL otherwise. Fixes #1255.
@ahmedre ahmedre merged commit 2b92c28 into master Jan 21, 2020
@ahmedre ahmedre deleted the only_apply_font_to_arabic_tafaseer branch January 21, 2020 21:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Only apply tafseer font to Arabic text
1 participant