I was looking for a solution to display non-standard font/Unicode in my Andriod application TextView. Many solutions that were available on internet were suggesting the user to root the device to replace the default font to your desired unicode font. This is not preferable solution for my case since I do not want my user to perform additional things that might also affect his device's warranty. Rooting in Android device will void the warranty of device in some countries. Furthermore, I do not see the value of rooting the device just to try out an application.
Therefore, after searching for long time, I finally found a workable solution, thanks to Google search engine. I am surprised and also thankful to the solution that were from in stackoverflow.
It is a simple solution. All you need to do is to create a folder "font" in your project tree under the folder named assets. Next, copy your font (in my case, it is called "zawgyi1.ttf") to that folder (assets/font).
After you have done the copying of the file, go back to your Eclipse editor. Under the main java source file.
Therefore, after searching for long time, I finally found a workable solution, thanks to Google search engine. I am surprised and also thankful to the solution that were from in stackoverflow.
It is a simple solution. All you need to do is to create a folder "font" in your project tree under the folder named assets. Next, copy your font (in my case, it is called "zawgyi1.ttf") to that folder (assets/font).
After you have done the copying of the file, go back to your Eclipse editor. Under the main java source file.
public class FontSampler extends Activity { @Override public void onCreate(Bundle icicle) { super.onCreate(icicle); setContentView(R.layout.main); TextView tv=(TextView)findViewById(R.id.custom); Typeface face=Typeface.createFromAsset(getAssets(), "font/zawgyi1.ttf"); tv.setTypeface(face); } }