내 상사가 더 작은 패키지 크기를 원합니다. 가장 큰 리소스는 ~ 5MB의 대체 글꼴 (CJK 문자 용)입니다. 현재 전화에서 대체 글꼴을 읽을 수있었습니다. OpenGL 응용 프로그램이며 글꼴 렌더링에 FreeType을 사용하므로 UIFont를 사용하지 않습니다. 나는 작동 코드를 가지고,하지만 난 읽기 /System/Library/Fonts/CGFontCache.plist는 다음과 같이 앱 스토어에서 거부되는 사유 인 경우 알고 싶어 : 나는 수많은 게시물을 본CGFontCache.plist를 읽기 위해 AppStore에서 거부 당할 수 있습니까?
void AddSystemFontToCache(const char* fontName, const int& fontStyle)
{
NSString *nsFontName = [NSString stringWithCString:fontName encoding:NSASCIIStringEncoding];
NSDictionary *nsFontsDict = [NSDictionary dictionaryWithContentsOfFile:@"/System/Library/Fonts/CGFontCache.plist"];
NSDictionary *nsTraitsDict = [nsFontsDict valueForKey:@"TraitMappings"];
NSDictionary *nsMappingDict = [nsTraitsDict valueForKey:nsFontName];
NSDictionary *nsFaceNamesDict = [nsFontsDict valueForKey:@"Names"];
NSString* nsFacePath = [nsFaceNamesDict valueForKey:[nsMappingDict valueForKey:nsFontStyle]];
// This function uses FT_New_Face to read the font
AddFontToCache(fontName, [nsFacePath cStringUsingEncoding:NSASCIIStringEncoding]);
}
감사 답변을 많이 거부됩니다. 애플이 사소한 문제들에 대한 애플 리케이션을 거부하는 것에 대한 많은 불쾌한 이야기를 들었 기 때문에 확실하게 묻고 싶었다. –