//
//  table__h_e_a_d.h
//  GSFontTools
//
//  Created by Georg Seifert on 28.07.12.
//  Copyright (c) 2012 schriftgestaltung.de. All rights reserved.
//

#import <GSFontTools/TTTable.h>

typedef NS_ENUM(uint16, OTHEADFlags) {
	OTHEADFlagBaselineAty = 1,
	OTHEADFlagLeftSidebearingPoint = 1 << 1,
	OTHEADFlagInstructionsDependOnPointSize = 1 << 2,
	OTHEADFlagForcePpemToInteger = 1 << 3,
	OTHEADFlagInstructionsAlterAdvanceWidth = 1 << 4,
	OTHEADFlagFontDataIsLossless = 1 << 11,
	OTHEADFlagFontConverted = 1 << 12,
	OTHEADFlagFontOptimizedForClearType = 1 << 13,
	OTHEADFlagLastResortFont = 1 << 14,
};

@interface table__h_e_a_d : TTTable

@property (nonatomic, assign) uint16_t majorVersion;
@property (nonatomic, assign) uint16_t minorVersion;
@property (nonatomic, assign) Fixed fontRevision;
@property (nonatomic, assign) NSUInteger checkSumAdjustment;
@property (nonatomic, assign) NSUInteger magicNumber;
@property (nonatomic, assign) OTHEADFlags flags;
@property (nonatomic, assign) uint16_t unitsPerEm;
@property (nonatomic, retain) NSDate *created;
@property (nonatomic, retain) NSDate *modified;
@property (nonatomic, assign) NSRect bounds;
@property (nonatomic, assign) uint16_t macStyle;
@property (nonatomic, assign) uint16_t lowestRecPPEM;
@property (nonatomic, assign) int16_t fontDirectionHint;
@property (nonatomic, assign) BOOL indexToLocFormat;
@property (nonatomic, assign) int16_t glyphDataFormat;

@end
