2010-10-22 15:57:22 +00:00
|
|
|
#import <Foundation/NSObject.h>
|
|
|
|
#import <Onyx2D/O2Font.h>
|
|
|
|
|
2015-05-24 00:15:45 +00:00
|
|
|
@interface O2Encoding : NSObject <NSCopying, NSMutableCopying> {
|
|
|
|
O2Glyph _glyphs[256];
|
|
|
|
unichar _unicode[256];
|
2010-10-22 15:57:22 +00:00
|
|
|
}
|
|
|
|
|
2015-05-24 00:15:45 +00:00
|
|
|
- initWithGlyphs:(const O2Glyph *)glyphs unicode:(uint16_t *)unicode;
|
2010-10-22 15:57:22 +00:00
|
|
|
|
2015-05-24 00:15:45 +00:00
|
|
|
- (void)getGlyphs:(O2Glyph *)glyphs;
|
|
|
|
- (void)getUnicode:(uint16_t *)unicode;
|
2010-10-22 15:57:22 +00:00
|
|
|
|
2015-05-24 00:15:45 +00:00
|
|
|
void O2EncodingGetGlyphsForBytes(O2Encoding *self, O2Glyph *glyphs, const uint8_t *bytes, unsigned length);
|
|
|
|
void O2EncodingGetUnicodeForBytes(O2Encoding *self, uint16_t *unicode, const uint8_t *bytes, unsigned length);
|
2010-10-22 15:57:22 +00:00
|
|
|
|
|
|
|
void O2EncodingGetMacRomanUnicode(unichar *codes);
|
|
|
|
void O2EncodingGetMacExpertUnicode(unichar *codes);
|
|
|
|
void O2EncodingGetWinAnsiUnicode(unichar *codes);
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
2015-05-24 00:15:45 +00:00
|
|
|
@interface O2MutableEncoding : O2Encoding
|
2010-10-22 15:57:22 +00:00
|
|
|
|
2015-05-24 00:15:45 +00:00
|
|
|
- (void)setGlyph:(O2Glyph)glyph unicode:(uint16_t)code atIndex:(int)index;
|
2010-10-22 15:57:22 +00:00
|
|
|
|
|
|
|
@end
|