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

#import <GSFontTools/CFFVersion.h>

@class CFFIndexCompiler;
@class GSFileData;

@interface CFFIndexedStrings : NSObject {
	NSMutableArray *_strings;
	NSMutableDictionary *_stringMapping;
}

@property (retain, nonatomic) NSMutableArray *strings;

- (instancetype)initWithFile:(GSFileData *)file version:(CFFVersion)version;

- (CFFIndexCompiler *)compiler;

- (NSUInteger)count;

- (NSString *)stringForSID:(uint32_t)SID;

- (uint32_t)SIDForString:(NSString *)string;

// The 391 Standard Strings as used in the CFF format.
// from Adobe Technical Note #5176, version 1.0, 18 March 1998
+ (NSArray *)cffStandardStrings;

@end
