0

I have an application of which i have two codes, one the latest one and the other is old one. i am merging my latest code with old one using DiffMerge utility. When I run the app on emulator after merging it runs fine but crashes on the device at the very first activity. the LogCat shows me the following:

I am Just showing the exception that is thrown when i run the app from Eclipse on my device.

06-29 10:34:09.554: WARN/System.err(1296): java.lang.RuntimeException: native typeface cannot be made

any help please.

Usama Sarwar
  • 8,922
  • 7
  • 54
  • 80
  • Have you checked previous same kind of posts over here? [link](http://stackoverflow.com/questions/3023960/crash-when-loading-font) also check [link_1](http://stackoverflow.com/questions/3717054/custom-fonts-in-android) – Balaji Khadake Jun 29 '11 at 06:12
  • Yes, I have, but couldn't find an appropriate answer. – Usama Sarwar Jun 29 '11 at 06:19
  • Finally, i have got an answer myself, the solution is name of font file i mean .ttf file must be same in both the codes, even case must be same. It has worked me after a lot of research on this small but really irritating problem, hope this works for others as well. – Usama Sarwar Jun 29 '11 at 06:24
  • @ Balaji, it was so nice of you, but that wasn't the right solution in my case. but thanks anyway. – Usama Sarwar Jun 29 '11 at 06:29
  • @Usama answer your own question and mark it as answered :-) – Blundell Aug 17 '11 at 09:11
  • @Blundell...I cannot mark my own question as answered..or can i..???? – Usama Sarwar Aug 17 '11 at 09:14

1 Answers1

0

Finally, i have got an answer myself, the solution is name of font file i mean .ttf file must be same in both the codes, even case must be same. It has worked me after a lot of research on this small but really irritating problem, hope this works for others as well:-)

Usama Sarwar
  • 8,922
  • 7
  • 54
  • 80