you can use setTypeface anywhere, inside the main class, please refer to my app: Arabic keyboard in the market, but how did you use Locale??? there is no Arabic Locale right now, did it make the letters connect?
thanks x2android.blogspot.com On Feb 23, 2:29 am, Christian Martín Reinhold <[email protected]> wrote: > I am using thearabicfont at the /assets/fonts folder and then used > the locale of ctx.getResources().configuration().locale to change the > locale to the desired ones (having previously added the configuration > settings uses-permition at the xml manifest), and it works. It changes > to thearabiclanguage. > > The next step is to usearabicfonts, for that y use > ctx.getAssetsManager(), and there I specify the font to the TextView > in the way "tv.setTypeface" so thatarabicletters are readable, and I > used a reshaper (capital letters don't work properly when reshaping, > but the rest works fine like this). > > The only thing is, Menus and Titles in Dialogs use textviews (i > suppose that), but you can not access to the textview and set a > typeface. In dialogs you have the option of setting a view, so you can > define your own textview so it is no problem, but I do not know how to > do that in the Menu object. > > On 22 feb, 12:08, G_man <[email protected]> wrote: > > > I don't mean to let you down but as of now, android does not have an > >arabicfont > > > I have a g1 and I can viewarabic(disconnected letters) but this is > > because I have root access and I replaced the default system font with > > one that supportsarabic > > your application will not be readable for users. > > > There is a way to do that. > > You have to put anarabicfont as a part of your program and do some > > sort of reshaper or make it viewable as images. Otherwise no one will > > be able to see what your application prints on screen. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

