Applying a system font to a TextView
suggest changeIn the following code, replace fontsname with the file name of the font you want to use:
TextView lblexample = (TextView) findViewById(R.id.lblexample);
lblexample.setTypeface(Typeface.createFromFile("/system/fonts/" + "fontsname" + ".ttf"));
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents