NSFont:positionOfGlyph:precededByGlyph:isNominal:
Home 目次>ApplicationKit>NSFont

positionOfGlyph:precededByGlyph:isNominal:

グリフの位置関係を返します


-(NSPoint) positionOfGlyph:(NSGlyph)aGlyph
   precededByGlyph:(NSGlyph)prevGlyph
   isNominal:(BOOL *)flag


【返り値】
   NSPoint位置
【パラメータ】
   aGlyph前の文字
   prevGlyph後の文字
   flagフラグ


【解説】

グリフの位置関係を返します。
Mac OS X v10.4 以降使えません。



【例文】


#import "MyObject.h"

@implementation MyObject

- (IBAction)myAction:(id)sender
{
NSFont *fnt;
fnt = [NSFont fontWithName:@"Osaka" size:36] ;


NSLog([NSString stringWithFormat:@"%f",[fnt positionOfGlyph:(NSGlyph)'A'
precededByGlyph:(NSGlyph)'A'
isNominal:NO].x]);
}

@end


(C) 2000-2007 Satoshi Oomori.
[Apple]

Google
Webwww.oomori.com
Apple_Store_40x120

[ad:Usual day in Japan]

この記事を評価してください。 

良い 

間違いがある 説明がわかりにくい 例文がわかりにくい  

Home 目次>ApplicationKit>NSFont
修正日2007.4.9