Hi all!
I'm developing a game and I want to include some fonts in it (not included with the iPhone). How can I do this? I have both .otf and .ttf fonts, wich format is preferred? Once fonts are included is there anything that I have to do before printing text with these fonts? I'm working in an OpenGL ES project and I'm writing text through the Texture2D class, wich calls a method for drawing a string and processes the font like this:
************************************************** ***********
- (id) initWithString: (NSString* )string dimensions: (CGSize)dimensions alignment

UITextAlignment)alignment fontName: (NSString* )name fontSize: (CGFloat)size
{
NSUInteger width,
height,
i;
CGContextRef context;
void* data;
CGColorSpaceRef colorSpace;
UIFont * font;
font = [UIFont fontWithName:name size:size];
(... some code ...)
[string drawInRect:CGRectMake(0, 0, dimensions.width, dimensions.height) withFont:font lineBreakMode:UILineBreakModeWordWrap alignment:alignment];
(... some code ...)
************************************************** ***********
The question is: a new font will be processed with this method, even after included in my resources directory?
Thanks in advance!