Hi,
I am drawing a String using CGContextShowTextAtPoint. Thus I need to convert my NSString I want to draw into c Strings. Unfortunately special symbols like the euro currency symbol are not correctly shown.
CGContextSelectFont(currentContext, "TrebuchetMS", 15, kCGEncodingMacRoman);
CGContextShowTextAtPoint(currentContext, 0, 0, [myString cStringUsingEncoding:[NSString defaultCStringEncoding]], [myString length]);
I tried it with the kCGEncodingFontSpecific encoding in the CGContextSelectFont function but that didn't work either.
For performance reasons I need to use the CG Function, not the drawInRect functions provieded by NSString.
Maybe you can help me!
Best, heinrich
PS: I know this is an often issued topic, but I cannot figure out why I can't get it working ...