¡@

Home 

2014/10/16 ¤W¤È 08:19:33

android Programming Glossary: molot.otf

Crash when loading font

http://stackoverflow.com/questions/3023960/crash-when-loading-font

.MainActivity D dalvikvm 247 GC_EXPLICIT freed 711 objects 53160 bytes in 20922ms Hmm... okay. I'm using the font Molot.otf which was successfully used in one of the blogs. I'm also using predator.ttf another custom font but in TrueType format.. public void onCreate Bundle icicle super.onCreate icicle Typeface tf Typeface.createFromAsset getAssets fonts Molot.otf TextView tv TextView findViewById R.id.CustomFontText tv.setTypeface tf and xml version 1.0 encoding utf 8 LinearLayout.. this java android share improve this question Android does not support OpenType OTF only TrueType TTF so your Molot.otf font probably will not work. I wrote both of those blog posts you link to in your opening sentence the one is a pirated..

Using custom font in android TextView using xml

http://stackoverflow.com/questions/9327053/using-custom-font-in-android-textview-using-xml

as follows TextView text TextView findViewById R.id.textview03 Typeface tf Typeface.createFromAsset getAssets fonts Molot.otf text.setTypeface tf Can't I do it from XML using an android typeface fonts Molot.otf attribute android xml android layout.. getAssets fonts Molot.otf text.setTypeface tf Can't I do it from XML using an android typeface fonts Molot.otf attribute android xml android layout fonts share improve this question Here is example code that does this. I have..