printerFont
プリンタフォントを返します
解説
プリンタフォントを返します。
返り値
( NSFont * )
プリンタフォント
引数
フレームワーク
ApplicationKit
クラス
NSFont
Instance Methods
使用可能
10.0
参照
- screenFont
例文
#import "MyView.h" //MyViewはNSViewのサブクラス @implementation MyView -(void)drawRect:(NSRect)rect { NSFont *font =[NSFont fontWithName:@"KozMinPro-Light" size:100.0]; //グリフIDのマッピングがOsakaとは違う //NSFont *font =[NSFont fontWithName:@"HiraMinPro-W3" size:100.0]; //グリフIDのマッピングがOsakaとは違う NSBezierPath *thePath = [NSBezierPath bezierPath]; NSGlyph glyphID[8] = {41,70,77,77,80,232,2632,1412}; [thePath moveToPoint:NSMakePoint(10,10)]; [thePath appendBezierPathWithGlyphs:&glyphID[0] count:8 inFont:font ]; [[NSColor blueColor] set]; [thePath fill]; NSLog([[font printerFont] displayName]); } @end