//
//  CFFIndexCompiler.h
//  GSFontTools
//
//  Created by Georg Seifert on 01.08.11.
//  Copyright 2011 schriftgestaltung.de. All rights reserved.
//

#import <GSFontTools/CFFCompiler.h>

@class CFFIndex;
@class CFFIndexedStrings;
@class GSIntArray;

/**
 Base class for writing CFF `INDEX data <https://docs.microsoft.com/en-us/typography/opentype/spec/cff2#5-index-data>`_
 to binary.
 */
@interface CFFIndexCompiler : NSObject <CFFCompiler>
//{
//	NSArray *_items;
//	CFFBaseDict *__unsafe_unretained _parent;
//	CFFVersion _version;
//}

@property CFFVersion version;

@property (strong) NSArray *items;

@property (unsafe_unretained) id parent;

- (instancetype)initWithItems:(CFFIndex *)items strings:(CFFIndexedStrings *)strings parent:(id)parent version:(CFFVersion)version;

- (GSIntArray *)offsets;

- (void)toFile:(NSMutableData *)file;

@end
