positionOfGlyph:struckOverRect:metricsExist:
グリフの位置
-(NSPoint)positionOfGlyph:(NSGlyph)aGlyph: struckOverRect:(NSRect)aRect: metricsExist:(BOOL *)flag:
解説
グリフの位置を返します。
Mac OS X v10.4以降使えません。
返り値
( NSPoint )
グリフの位置
引数
( NSGlyph )aGlyph
グリフ
( NSRect )aRect
範囲
( BOOL * )flag
フォントメトリックスフラグ
フレームワーク
ApplicationKit
クラス
NSFont
Instance Methods
使用可能
10.0
参照
例文
#import "MyObject.h" @implementation MyObject - (IBAction)myAction:(id)sender { NSFont *fnt; BOOL ret; fnt = [NSFont fontWithName:@"Osaka" size:36] ; NSLog([NSString stringWithFormat:@"%f", [fnt positionOfGlyph:(NSGlyph)'A' struckOverRect:NSMakeRect(1,1,10,10) metricsExist:&ret ].x]); if (ret){ NSLog(@"YES"); }else{ NSLog(@"NO"); } } @end