u have to put the font in the system folder of android .....have to make an entry in the source of the skia libraray of the android source code..........
path to source code:- ./Android_Source/external/skia/src/ports file name: SkFontHost_android.cpp add ur unicode font in the array and compile the code and get the new system image..... regards Vinodkumar Pache India....... On Thu, Jul 7, 2011 at 5:59 AM, Randil <randilpushpana...@gmail.com> wrote: > I am developing a predictive text input system for Sinhala language. > So I started with sample SoftKeyboard and still I could see only white > boxes. I tried to change the some codes inside the CandidateView.java > in the SoftKeyboard sample as follows. I am new to the android. > > I want to know how to get font in the assets > > ---------------------------------------------------------------------------------------------------------------------------- > AssetManager assetManager=getAssets(); // initializes=d as this, but > gives an error > > Typeface aassets= Typeface.createFromAsset(assetManager, "fonts/ > isk.ttf"); > //Typeface tf = Typeface.create(aassets, Typeface.DEFAULT_BOLD); > mPaint.setTypeface(aassets); > > ---------------------------------------------------------------------------------------------------------------------------- > > Thank you > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to android-developers@googlegroups.com > To unsubscribe from this group, send email to > android-developers+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en