lineSpacingAfterGlyphAtIndex:withProposedLineFragmentRect:
行間を返します
-(float)lineSpacingAfterGlyphAtIndex:(unsigned)glyphIndex: withProposedLineFragmentRect:(NSRect)rect:
解説
行間を返します。
glyphIndexのグリフが影響される
返り値
( float )
なし
引数
( unsigned )glyphIndex
( NSRect )rect
フレームワーク
ApplicationKit
クラス
NSTypesetter
Instance Methods
使用可能
10.4
参照
例文
//行/段落 スペース - (float)lineSpacingAfterGlyphAtIndex:(unsigned)glyphIndex withProposedLineFragmentRect:(NSRect)rect { NSLog(@"-lineSpacingAfterGlyphAtIndex glyphIndex (%u)",glyphIndex); float space = [super lineSpacingAfterGlyphAtIndex:glyphIndex withProposedLineFragmentRect:rect]; NSLog(@"-lineSpacingAfterGlyphAtIndex space (%.1f)",space); return space; }