Merge pull request #10 from gunyarakun/fix-invalid-return
[cocotron.git] / Onyx2D / O2TTFDecoder.h
blobf4de3631f97f8cacbc38d80f47ea4957c091b7a9
1 #import <Onyx2D/O2DataProvider.h>
2 #import <CoreFoundation/CoreFoundation.h>
3 #import <Foundation/NSMapTable.h>
4 #import <Onyx2D/O2Path.h>
6 @class O2TTFDecoder;
8 typedef O2TTFDecoder *O2TTFDecoderRef;
10 @interface O2TTFDecoder : NSObject {
11 O2DataProviderRef _dataProvider;
12 CFDataRef _data;
13 const uint8_t *_bytes;
14 CFIndex _length;
15 CFIndex _position;
17 int _dump;
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);
33 @end