开发者

Trouble with the custom font on Java, Android

开发者 https://www.devze.com 2023-03-24 23:16 出处:网络
I use the custom typeface and app in emulator API version 2.1 (and my mobile API version 2.1)work correctly, but in older versions app don\'t work with Exception:

I use the custom typeface and app in emulator API version 2.1 (and my mobile API version 2.1) work correctly, but in older versions app don't work with Exception:

08-04 06:16:14.041: ERROR/AndroidRuntime(273): Caused by: java.lang.RuntimeException: native typeface cannot be made

I use this code:

Typeface t=Typeface.createFromAsset(mAssetManager, "fonts/MusiSync.ttf");

But I need all version for my 开发者_Python百科app. Help me please. Thank you for, anyway.


Check this out:

http://mobile.tutsplus.com/tutorials/android/customize-android-fonts/

0

精彩评论

暂无评论...
验证码 换一张
取 消