mEditText = (EditText) getContentView().findViewById( R.id.custom_text );
AssetManager assests=getContext().getBaseContext().getAssets();
Typeface tf = Typeface.createFromAsset(assests, "fonts/DroidSansFallback.ttf");
mEditText.setTypeface(tf);
I am trying to install my own font using the code above. Everything is going well, there is no error, but I can not install my own font on mine EDIT_TEXT. I can not understand what is happening.
source
share