I am using external fonts for my application. As the external fonts are not supported in version 3.1 I want to define the font name in relation to the iOS executing the program. I have defined the MY_FONT_NAME variable in a Constants.h file like this:
// # If __IPHONE_OS_VERSION_MAX_ALLOWED & gt; = __IPHONE_3_2 #ifdef __IPHONE_3_2 #define MY_FONT_NAME @ # "ExternalFontName" at #define MY_FONT_NAME # "AppleGothic" #endif
I have tried the first, the first commented line and the second, the success Without it, but it always gets the value of "external font name", even executed on 3.1 device ... and so, when I set the font in a label, I get an error < / P>
'NSInternalInconsistencyException', Reason: 'Invalid parameter is not satisfactory: font! = Zero '
Does anyone know what the problem is ?? Thank you in advance
Perhaps UIFont's + fontWithName: size:
font available And / or + family names
and + fontNamesForFamilyName:
. to check the array returned. For example, I believe there are some fonts running on iPad 3.2, even for the iPhone 4.0 vs.
Comments
Post a Comment