1 #import <Onyx2D/O2DataProvider.h>
2 #import <CoreFoundation/CoreFoundation.h>
3 #import <Foundation/NSMapTable.h>
4 #import <Onyx2D/O2Path.h>
8 typedef O2TTFDecoder
*O2TTFDecoderRef
;
10 @interface O2TTFDecoder
: NSObject
{
11 O2DataProviderRef _dataProvider
;
13 const uint8_t *_bytes
;
20 O2TTFDecoderRef
O2TTFDecoderCreate(O2DataProviderRef dataProvider
);
22 O2TTFDecoderRef
O2TTFDecoderRetain(O2TTFDecoderRef self
);
23 void O2TTFDecoderRelease(O2TTFDecoderRef self
);
25 NSMapTable
*O2TTFDecoderGetPostScriptNameMapTable(O2TTFDecoderRef self
, int *numberOfGlyphs
);
27 int *O2TTFDecoderGetGlyphLocations(O2TTFDecoderRef self
, int numberOfGlyphs
);
29 O2PathRef
O2TTFDecoderGetGlyphOutline(O2TTFDecoderRef self
, int glyphLocation
);
31 void O2TTFDecoderGetNameTable(O2TTFDecoderRef self
);