matrix
フォントのフォントマトリックスを返します
解説
フォントのフォントマトリックスを返します。
返り値
( const float * )
フォント・マトリックス
引数
フレームワーク
ApplicationKit
クラス
NSFont
Instance Methods
使用可能
10.0
参照
+ fontWithName:matrix:
例文
#import "MyView.h" //MyViewはNSViewのサブクラス @implementation MyView -(void)drawRect:(NSRect)rect { NSFont *font =[NSFont userFontOfSize:180.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]; float mat[6]; mat[0] = *[font matrix]; NSLog(@"%f,%f,%f,%f,%f,%f",mat[0],mat[1],mat[2],mat[3],mat[4],mat[5]); } @end