Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
NSFontに「°」のようなユニコード文字が含まれているかどうかをプログラムで確認するにはどうすればよいですか?
OK、これを試してください:
NSFont *font = [NSFont fontWithName:@"Arial" size:14.0]; NSCharacterSet *set = [font coveredCharacterSet]; if (![set characterIsMember:[@"°" characterAtIndex:0]]) { NSLog(@"Failed"); } else { NSLog(@"Success"); }