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

#import <GSFontTools/CFFIndex.h>

#import <GSFontTools/CFFVersion.h>

@class CFFGlobalSubrsIndex;
@class CFFIndexedStrings;
@class OTVarStore;
@class TTFont;

NS_ASSUME_NONNULL_BEGIN

@interface CFFTopDictIndex : CFFIndex

/// @param fileData Used for CFF2 only.
/// @param glyphOrderProvider Used for CFF2 only.
/// @param topDictSize Used for CFF2 only.
///
/// @see `__init__(self, file=None, cff2GetGlyphOrder=None, topSize=0, isCFF2=None)`
- (instancetype)initWithVersion:(CFFVersion)version
					   fileData:(nullable GSFileData *)fileData
			 glyphOrderProvider:(nullable NSObject *)glyphOrderProvider
					topDictSize:(int)topDictSize;

@property (nonatomic, retain, nullable) CFFIndexedStrings *strings;
@property (nonatomic, retain, nullable) CFFGlobalSubrsIndex *globalSubrs;
@property (nonatomic, retain, nullable) OTVarStore *varStore;

@end

NS_ASSUME_NONNULL_END
