objective c - adding custom fonts to application -


in project, i'm using custom font named "comics.ttf"... added font file named "comics.ttf" resources , edited plist include new field specifying "fonts provided application comics.ttf "

after that, accessed font usig uifont's fontwithname:@"comics" size:40.0 method... (comics font name got when tried nslog font names)... these worked in iphone 4... but, when tried install program in ios3.1, throwing exception follows...

*** assertion failure in -[uilabel setfont:], /sourcecache/uikit/uikit-984.38/uilabel.m:445 2011-03-07 14:24:20.271 cmb[183:207] *** terminating app due uncaught exception 'nsinternalinconsistencyexception', reason: 'invalid parameter not satisfying: font != nil' 2011-03-07 14:24:20.291 cmb[183:207] stack: (     853417245,     845594132,     852966195 

also, it's not showing font name when tried nslog font name... know, what's problem?

adding custom fonts became available in 3.2 , later versions so, if trying use on 3.1 won't work


Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -