localizedNameForFamily:face:
フォントファミリー名とフォントフェイス名で、ローカライズ名称を返します
-(NSString *)localizedNameForFamily:(NSString *)family:
face:(NSString *)face:
解説
フォントファミリー名とフォントフェイス名で、ローカライズ名称を返します。
引数
( NSString * )family
ファミリー名
( NSString * )face
フェイス名
フレームワーク
ApplicationKit
クラス
NSFontManager
Instance Methods
使用可能
10.0
参照
例文
#import "Controller.h" @implementation Controller - (IBAction)pushButton:(id)sender { NSFontManager *fMgr = [NSFontManager sharedFontManager]; NSFontPanel *fPanel = [NSFontPanel sharedFontPanel]; [fMgr orderFrontFontPanel:fPanel]; [info setStringValue:[fMgr localizedNameForFamily:@"Osaka" face:@"Regular-Mono"]]; } @end