FROM : Andreas Gotfredsen
DATE : Wed Mar 19 11:37:08 2008
Hi Scott
Big Questions here and I´m guesing I´m not the only one ...
I´m using the iPhone SDK like 100.000 people do and what are the limitations
? In English
I mean shorly I can talk about Cocoa in general when I have questions ?
I have not talked about any iPhone API stuff but only Cocoa stuff (Core
Graphic) but
where should people like me turn to talk to outhers when it comes to iPhone
API stuff ?
There are no forum or mailing list avaible ...
and for examples that are missing ... and seems realy hard to do ... that
should be simple i custom font
I have created my own TTF font and I want to use it in my app, Bundle it in
the resource ...
it would be unbelivable great with a example (samplecode) on how to do that
I think I´m on the right path with this
NSString* fontPath = [[NSBundle mainBundle] pathForResource:@"MyFont" ofType
:@"ttf"];
CGDataProviderRef fontDataProvider = CGDataProviderCreateWithFilename
(fontPath);
CGFontRef myfont = CGFontCreateWithDataProvider(fontDataProvider);
CGContextSetFont(context, myfont);
but I gues I´m not even close
any answer or help ... 1000 thanks ..
Best Regards
Andreas Gotfredsen, Sweden.
DATE : Wed Mar 19 11:37:08 2008
Hi Scott
Big Questions here and I´m guesing I´m not the only one ...
I´m using the iPhone SDK like 100.000 people do and what are the limitations
? In English
I mean shorly I can talk about Cocoa in general when I have questions ?
I have not talked about any iPhone API stuff but only Cocoa stuff (Core
Graphic) but
where should people like me turn to talk to outhers when it comes to iPhone
API stuff ?
There are no forum or mailing list avaible ...
and for examples that are missing ... and seems realy hard to do ... that
should be simple i custom font
I have created my own TTF font and I want to use it in my app, Bundle it in
the resource ...
it would be unbelivable great with a example (samplecode) on how to do that
I think I´m on the right path with this
NSString* fontPath = [[NSBundle mainBundle] pathForResource:@"MyFont" ofType
:@"ttf"];
CGDataProviderRef fontDataProvider = CGDataProviderCreateWithFilename
(fontPath);
CGFontRef myfont = CGFontCreateWithDataProvider(fontDataProvider);
CGContextSetFont(context, myfont);
but I gues I´m not even close
any answer or help ... 1000 thanks ..
Best Regards
Andreas Gotfredsen, Sweden.
| Related mails | Author | Date |
|---|---|---|
| No related mails found. | ||






Cocoa mail archive

