How To Change Arabic Font In Android

123 views
Skip to first unread message

Bonifacia Cramm

unread,
Aug 5, 2024, 8:18:46 AM8/5/24
to lusoncamu
Toolate to answer but it may help. You couldn't change it directly, you have to customize it by downloading a font in .ttf format. Then identify it in the style.xml file.For more, you can find the steps here -Font-Android-Project

Thanks! I am wondering if I have misunderstood what you are referring to. Do you have a problem with nastaliq, as shown below? Or just with the letter forms of the standard naskh font. My Urdu comments only relate to nastaliq.


please ask through to change the font to Geeza Pro rather than the dumb stupid SF Arabic - which suitable for 3rd grade elementary student - that can't handle UTF-8 charachter as result enlarge the charachter and shows more like Persian or Urdu but not Arabic.


Just found out after all the efforts and research: it is not the Arabic fonts but iOS 11 is using New San Francisco as default font and it affects the outcome of Arabic text and perhaps any other language that use non-Latin fonts too. I guess for us that use Arabic fonts will get stuck with a hope that will consider changing the fonts like it was.


OK, I understand now. Some users have ALL their text looking like those Arabic UTF characters, and I thought maybe you were one of them. When that happens, it is because a nastaliq Arabic font gets used instead of a naskh Arabic font. And a nastaliq Arabic font gets used when the machine thinks the user prefers Urdu over Arabic language.


Anyone who's ever studied Arabic and attempted to increase their exposure to the language through the internet will have encountered this problem: Arabic fonts are always two or three sizes smaller than their English/Roman alphabet equivalent. This can make navigating the web a dispiriting experience. Most big websites take a lot of time and effort to get their browsing experience just right, with fonts that are appropriately scaled and optimised for reading. (Get a sense of how much thought goes into typefaces here, for example, at the New York Times.)


So why does this happen? At first I thought it was just a case of Arabic fonts being very much a sideshow in the what-doesn't-everyone-else-speak-english show that encompasses so much of Silicon Valley's design mentality. The most-used products are generally designed for an English-speaking audience, with people writing from left-to-right. Apple and Android's operating systems both work and function much better / logically when set to a Roman alphabet / layout. I happen to have my phones and computers set to an Arabic alphabet, and it's blindingly obvious that less thought went into designing the experience for such Arabic-speaking users. (For a more detailed explanation of some of the deficiencies of Arabic fonts, read this and this.)


What's worse, the consistency is subject to random change. To give one small example, iOS's 'Save to Evernote' dialogue box allows me to save articles from Instapaper into Evernote. (This is part of my somewhat laborious workflow for getting articles into DevonThink. Read here for more.) For years, I clicked a button in the right-hand corner to 'save', but a few months back they switched all the boxes around and now I have to click in the left-hand corner. The muscle memory is such that this is a hard one to fix. It's not the end of the world, but it still is an indication (along with the many other times this happens, seemingly without plan) of how little thought goes into this design and user interface work.


Coming back to fonts, the real reason for why this happens has to do with the amount of vertical space that letters take up. Thomas Phinney of FontLab explained it clearly over on Quora when he wrote:


"Arabic letters have a smaller body relative to the extenders above and below, so the most common elements are smaller relative to everything else. Because the height of the font needs to more-or-less fit within the body size, Arabic looks smaller than Latin at the same point size."


Another problem is that the new font is too condensed; The height of the characters is considerably less than the other Arabic fonts, and space between words is too small when you are reading huge blocks of texts. I noticed this while viewing my Arabic blog posts that I wrote:


Another issue, is that the space after some punctuation marks is quite huge comparing to the normal characters, giving them an unnatural feeling and making them harder to read (The white space after these marks are almost twice the white space after normal words, notice the areas I highlighted and compare them to the other white spaces):


If we are to fix the problem, then I believe a public poll for a number of suggested Arabic fonts should be created before such change is made. This could be helpful for 20.10 or other future releases.


Another problem is that the new font is too condensed; The height of the characters is considerably less than the other Arabic fonts, and space between words is too small when you are reading huge blocks of texts.


This has now been implemented, and I have confirmed that it works as intended via the latest groovy and focal daily builds. So, provided that you are connected to internet when installing, it will work with the Ubuntu 20.10 ISO. As regards focal it will work only with the ISO for the Ubuntu 20.04.2 point release.


I am using Ubuntu 20.04.01 L.T.S and after a while installing it, WhatsApp web Persian fonts changed to something really annoying, and the problem is I don't know whether its from Ubuntu, or WhatsApp web because I tried with another browser but nothing changed.


You need to add Persian Locale, to do that run sudo apt-get install language-pack-fa command, this will fix not only WhatsApp Web but so many other things in your system..., if your having this issue for any other languages, you must replace -fa with your own language locale code in above command. you can find your language code in this link: -US/12.5/localization-guide/appendix-locale-codes.64474/


Just wondering if a slight increase to the default font size is possible? I know you're working on making the forum look more 'familiar' - I note that the default font size on Duolingo is quite a bit bigger than the default font here.


This already looks a little off if you choose "130%" (the actual value used for this is 104%, presumably because actually using 130% would look horrendous). Worse, if you choose the maximum "400%" (actual value 120%), elements closer to the root are rendered at a reasonable but slightly-increased size, whereas elements further from the root are rendered at a GIGANTIC size. Here's an example:


I'm looking mainly at fonts that are made for both Arabic and Latin letters. My favorite is Dubai font, but for diversity's sake, a few others would be nice to add as well, like Tajawal, Ruqa and Amiri.


Using different fonts for each supported script (Arabic, Hindi, Cyrillic, Greek, Hebrew, Korean, Chinese, Hiragana/Katakana) could get complicated, and multiple typefaces for each script could become resource-heavy too. Unless the idea is to have users select from a dropdown and only download/use the selected font? But I can't find any existing extensions that enable that functionality.


I added Dubai font for (i.e. RTL BBCode content).

I'm also trying a slightly bigger/narrower font for the rest of the forum, which would also help cyrillic letters - there shouldn't be such a huge diffrence between cyrillic and latin now. Please, see if it's better like this... (just a quick test of different font-styles here).


"في منتصف رحلة الحياة

استيقظت لأجد نفسي في غابة مظلمة

لأني انحرفت عن الطريق الصحيح

يا إلهي كم يصعب وصفها

كم كانت تلك الغابة قاسية ووحشية

مجرد التفكير فيها يعيد بعث الخوف بداخلي

الذهاب إلى الجحيم والعودة منه"


I'm also trying a slightly bigger/narrower font for the rest of the forum, which would also help cyrillic letters - there shouldn't be such a huge diffrence between cyrillic and latin now. Please, see if it's better like this... (just a quick test of different font-styles here).




If you ask me, I'd say the computer version should have even bigger font sizes. There is so much space going to waste. The sentences don't even occupy half of the content body. If you take a look at most of the instructive sites, you'll find that the sizes of fonts are kinda big, that plays a big role in making the reader stay and continue reading. I know there is an option to increase the size in the UCP but that increases the size of everything, and would require the users to be registered to begin with, while the people we want to attract with the content and make them stay --register as well-- are the visitors, who do not have such control. I can imagine many visitors disregarding the forums just because they have difficulties reading its content. So maybe it's worth taking that into consideration if it's going to attract more people here and make them stay.


Bigger font sizes - I need to get used to them now that I have been watching the smaller fonts for so many weeks, even this +1px was killing me for the first few minutes when I kept switching those variants back and forth, now another +1px doesn't look like a disaster, but... give me just a little more time ))

3a8082e126
Reply all
Reply to author
Forward
0 new messages