leading
レシーバーのリードを返します
解説
調査中...
レシーバーのリードを返します。
返り値
( float )
なし
引数
フレームワーク
ApplicationKit
クラス
NSFont
Instance Methods
使用可能
10.4
参照
+fontWithDescriptor:size:
例文
#import "MyView.h" //MyViewはNSViewのサブクラス @implementation MyView -(void)drawRect:(NSRect)rect { NSFont *font =[NSFont fontWithName:@"Helvetica-BoldOblique" size:100.0]; NSLog([font fontName]); NSBezierPath *thePath = [NSBezierPath bezierPath]; NSGlyph glyphID[2]={43,72}; [thePath moveToPoint:NSMakePoint(0,0)]; [thePath appendBezierPathWithGlyphs:&glyphID[0] count:2 inFont:font ]; [[NSColor blueColor] set]; [thePath fill]; NSLog(@"%f",[font leading]); } @end