//
//  TTFont+Tools.h
//  GSFontTools
//
//  Created by Martin Winter on 13/02/24.
//  Copyright © 2024 schriftgestaltung.de. All rights reserved.
//

#import <GSFontTools/TTFont.h>

NS_ASSUME_NONNULL_BEGIN

NSString *OTTempFolder(void);

NSString *cleanedXMLFromTable(TTTable *table, TTFont * _Nullable font, NSString * _Nullable XPath);

@interface TTFont (Tools)

// NSString * _Nullable getXMLString(NSString * tableTag, TTFont * font, NSString *_Nullable queryString);
- (NSString *)XMLStringForTableWithTag:(NSString *)tag
								 XPath:(nullable NSString *)XPath
								   key:(NSString *)key;

// NSData *getTableData(TTFont *font, NSString *tableName);
- (NSData *)dataForTableWithTag:(NSString *)tag;

// NSString *roundTripDiff(TTFont *font, NSString *tableName);
- (NSString *)roundTripDifferenceForTableWithTag:(NSString *)tag;

// NSString *tableDiff(TTFont *font, NSString *XMLURL, NSString *tableName);
- (NSString *)differenceForTableWithTag:(NSString *)tag
								 XMLURL:(NSURL *)URL;

@end

NS_ASSUME_NONNULL_END
