I have an app with educational context I want to use an appropriate Persian font for reading. how can I know which fonts are available to use? (I mean, I do not want to download external one) and can anyone suggest a good Persian font for educational context?
Asked
Active
Viewed 2,023 times
0
-
follow this [link](http://stackoverflow.com/questions/3532397/how-to-retrieve-a-list-of-available-installed-fonts-in-android) – sud Nov 06 '15 at 10:07
-
There are only three fonts: normal (Droid Sans), serif (Droid Serif), and monospace (Droid Sans Mono). While there may be additional fonts buried in WebKit somewhere, they appear to be inaccessible to developers outside of WebKit. :-( The only other fonts are any TrueType ones you bundle with your application. – sud Nov 06 '15 at 10:10
-
@sud I am looking for persian fonts, I read a file in my app, Its context is written in persian but in my phone its shown with arabic font. – Suzi Nov 06 '15 at 10:19
-
the droid has availabilty of some persian fonts.. if your font comes under droid then only you can use it – sud Nov 06 '15 at 10:22
3 Answers
3
Hi you can custom the fonts based on the view your looking for Download a font from internet and put it under assets/fonts folder.
tv1=(TextView)findViewById(R.id.textView3);
tv2=(TextView)findViewById(R.id.textView4);
Typeface face= Typeface.createFromAsset(getAssets(), "font/font.ttf");
tv1.setTypeface(face);
Typeface face1= Typeface.createFromAsset(getAssets(), "font/font1.ttf");
tv2.setTypeface(face1);
impathuri
- 574
- 6
- 21
2
"Noto" is a standard Font for other Languages. You can find "Noto" -- https://www.google.com/get/noto/
Nazila
- 21
- 2