NSFont:toolTipsFontOfSize:
Home 目次>ApplicationKit>NSFont

toolTipsFontOfSize:

ツールティップスに使われるフォントとサイズでフォントオブジェクトを作って返します


+(NSFont *) toolTipsFontOfSize:(float)fontSize


【返り値】
   NSFont *フォント
【パラメータ】
   fontSizeフォントサイズ(point)


【解説】

ツールティップスに使われるフォントとサイズでフォントオブジェクト(NSFont)を作って返します。



【例文】


#import "MyView.h"

//MyView NSView のサブクラス
@implementation MyView

-(
void )drawRect:(NSRect)rect
{
NSFont *font =[NSFont toolTipsFontOfSize:
50.0 ];
NSLog([font fontName]);
NSBezierPath *thePath = [NSBezierPath bezierPath];
NSGlyph glyphID[
11 ]={ 43 , 72 , 79 , 79 , 82 , 04 , 58 , 82 , 85 , 79 , 71 };

[thePath moveToPoint:NSMakePoint(
10 , 10 )];
[thePath appendBezierPathWithGlyphs:&glyphID[
0 ]
count:
11
inFont:font
];


[[NSColor blueColor] set];
[thePath fill];

}

@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