1

android custom font not showing

view story
linux-howto

http://stackoverflow.com – i have a problem where nothing shows up when i assign a custom font to a view. TextView statsView1, statsView2, statsView; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_NO_TITLE); setContentView(R.layout.fragment_main); statsView=(TextView) findViewById(R.id.statsView); statsView1 = (TextView) findViewById(R.id.stats1); statsView2 = (TextView) findViewById(R.id.stats2); Typeface font=Typeface.createFromAsset(getAssets(), "Pretendo.ttf"); statsView.setTypeface(font); (HowTos)