Typeface tf = Typeface.createFromAsset(this.getAssets(), "Tikkana.ttf"); System.out.println("8888 "+tf.getStyle()); System.out.println(tf); yourName.setTypeface(tf);
I use the code above, but it does not work. Text is displayed as rectangular rectangles.
source share