00001
00002
00003
00004
00005
00006
00007
00008 #ifndef __OPENTYPEUTILITIES_H
00009 #define __OPENTYPEUTILITIES_H
00010
00011 #include "LETypes.h"
00012 #include "OpenTypeTables.h"
00013
00014 class OpenTypeUtilities
00015 {
00016 public:
00017 static le_int8 highBit(le_int32 value);
00018 static Offset getTagOffset(LETag tag, TagAndOffsetRecord *records, le_int32 recordCount);
00019 static le_int32 getGlyphRangeIndex(LEGlyphID glyphID, GlyphRangeRecord *records, le_int32 recordCount);
00020 static le_int32 search(le_uint16 value, le_uint16 array[], le_int32 count);
00021 static le_int32 search(le_uint32 value, le_uint32 array[], le_int32 count);
00022 };
00023
00024 #endif