![](/uploads/1/2/6/6/126693952/555024033.png)
![Generator Generator](/uploads/1/2/6/6/126693952/834014438.png)
In order to access our font easily, we need to bundle it with our application in a way that our code can subsequently load it. To do this, we create a Fonts folder in our assets directThis may be your.xml Write following code in your.java class Typeface tf = Typeface.createFromAsset(getAssets,'fonts/BPreplay.otf');TextView tv = (TextView) findViewById(R.id.CustomFontText);tv.setTypeface(tf).
![Keren Keren](http://4.bp.blogspot.com/-6ngKnMTJZaE/UQ1Fcr15L2I/AAAAAAAAA7s/tD0jcvE2TJo/s4000/Font+Sheet.jpg)
Download free racing fonts. No hassle, no fuss, find thousands of high quality free fonts on Fontsc.
I was having the same problem. My font was not working in android either but I needed it to work. Using a font editor, I copied the characters from my font into the font that comes with the FontSampler example from Android-src-21. It worked perfectly.While I will admit that my method was questionable from an intellectual property point of view, I didn't actually wind up using the original font, as all of the characters were replaced and all references to the old font where replaced as well. I had tried 'looking' at the way the two fonts were defined but making all the font variables match didn't work either. So in the ned, I used a skeleton of the original font as a template for the new font.
![](/uploads/1/2/6/6/126693952/555024033.png)