@Vinodkumar If I'm not mistaken, the change will only work on its custom system. So it's not a good solution if Randil want to ship his apps through the Android Market.
@Randil, if you find a workable solution let me know, I'll probably need something similar for chinese. Cheers, Éd On Jul 7, 6:25 am, Vinod Pache <[email protected]> wrote: > 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 <[email protected]> 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 [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 -- 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

