positionOfGlyph:struckOverGlyph:metricsExist:
グリフの位置
-(NSPoint)positionOfGlyph:(NSGlyph)aGlyph: struckOverGlyph:(NSGlyph)baseGlyph: metricsExist:(BOOL *)flag:
解説
グリフの位置を返します。
Mac OS X v10.4以降使えません。
返り値
( NSPoint )
グリフの位置
引数
( NSGlyph )aGlyph
グリフ
( NSGlyph )baseGlyph
ベースグリフ
( BOOL * )flag
フォントメトリックスフラグ
フレームワーク
ApplicationKit
クラス
NSFont
Instance Methods
使用可能
10.0
参照
- positionsForCompositeSequence:numberOfGlyphs:pointArray:
- positionOfGlyph:struckOverRect:metricsExist:
例文
- (IBAction)myAction:(id)sender { NSFont *fnt; BOOL flag; fnt = [NSFont fontWithName:@"Osaka" size:36] ; NSPoint point = [fnt positionOfGlyph:(NSGlyph)'A' struckOverGlyph:(NSGlyph)'B' metricsExist:&flag ]; (flag) ? NSLog(@"YES") : NSLog(@"NO") ; NSLog([NSString stringWithFormat:@"x= %.1f,y= %.1f",point.x,point.y]); }