showPackedGlyphs:length:glyphRange:atPoint:font:color:printingAdjustment:
連続したグリフを表示します
-(void)showPackedGlyphs:(char *)glyphs: length:(unsigned)glyphLen: glyphRange:(NSRange)glyphRange: atPoint:(NSPoint)point: font:(NSFont *)font: color:(NSColor *)color: printingAdjustment:(NSSize)printingAdjustment:
解説
連続したグリフを描画します。
このメソッドを呼び出してはいけません。オーバーライドすることができます。
返り値
( void )
なし
引数
( char * )glyphs
グリフ
( unsigned )glyphLen
グリフの長さ
( NSRange )glyphRange
グリフの範囲
( NSPoint )point
位置
( NSFont * )font
フォント
( NSColor * )color
カラー
( NSSize )printingAdjustment
フレームワーク
ApplicationKit
クラス
NSLayoutManager
Instance Methods
使用可能
10.0
参照
例文
//グリフ表示 - (void)showPackedGlyphs:(char *)glyphs length:(unsigned)glyphLen glyphRange:(NSRange)glyphRange atPoint:(NSPoint)point font:(NSFont *)font color:(NSColor *)color printingAdjustment:(NSSize)printingAdjustment { //(char *)glyphs length: //(unsigned)glyphLen glyphRange: //(NSRange)glyphRange atPoint: //(NSFont *)font color: //(NSColor *)color printingAdjustment: //(NSSize)printingAdjustment //描画に回転をかける /* NSGraphicsContext *context = [NSGraphicsContext currentContext]; [context saveGraphicsState]; NSAffineTransform* affine = [NSAffineTransform transform]; // move axis [affine translateXBy: 0 //currentPoint.x + attrSize.width/2 yBy: -5 ];//currentPoint.y + attrSize.height/2 ]; // Someone modifies here properly please. [affine rotateByDegrees:10.0]; [affine concat]; */ NSPoint newPoint = NSMakePoint(point.x,point.y);//y NSSize newSize = NSMakeSize(printingAdjustment.width,printingAdjustment.height+100); NSLog(NSLocalizedString( @"LM00004", @""),point.x,point.y); [super showPackedGlyphs:glyphs length:glyphLen glyphRange:glyphRange atPoint: newPoint font:font color:color printingAdjustment:newSize]; ////描画に回転をかける //[context restoreGraphicsState]; }